Hello,
Is possible not interpret html code in a cell. In my database i have a field with html code and when content is loaded in grid, this interpret html code and resize heigth of row and not is aesthetic.
Thanks!
Hello,
You can use custom formatter for column. For e.g.
$col["formatter"] = "function(cellval,options,rowdata){ return jQuery.jgrid.htmlDecode(cellval); }";
$col["unformat"] = "function(cellval,options,rowdata){ return jQuery.jgrid.htmlEncode(cellval); }";
formatter function will be called on display, and unformat on editing display mode.
Hi,
I am using
$col["formatter"] = "function(cellval,options,rowdata){ return jQuery.jgrid.htmlDecode(cellval); }";
to format HTML data stored in database. But when I edit the cell, the HTML tags are getting displayed.Anyway to show only the formatted output during edit also.