Grid breaks when column contains a HTML table

QuestionsGrid breaks when column contains a HTML table
Carlo Marini asked 3 years ago

We have a notes column that contains html.  When the column contains a table the grid seems to append the remaining rows the the table in the notes column.

This is what it looks like.

image

Is there way to prevent this behavior?

3 Answers
Carlo Marini answered 3 years ago

There was an issue with uploading the image. https://imgur.com/a/cV5TRir

Abu Ghufran Staff answered 3 years ago

Hi,

You can check this faq: Q) How to show HTML tags in textarea and grid cells?https://www.gridphp.com/docs/column-appearance-faqs/#q-how-to-show-html-tags-in-textarea-and-grid-cells

Another option is to use html editor for this column:
Refer this demo and code:
https://www.gridphp.com/demo/demos/integrations/html-editor.php
https://www.gridphp.com/demo/demos/integrations/html-editor.phps

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Carlo Marini answered 3 years ago

The first solution worked great. I just changed $col[“edittype”] = “textarea”; to $col[“edittype”] = “table”;

 

Thank you!

Your Answer

12 + 16 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?