Html as string in free version

QuestionsHtml as string in free version
Lucas asked 9 years ago

Hello,

currently I'm testing php grid free version. I have one simple question.

I' ve found similar problem one user had and I wanted to know if solution he got in response will work in free version.

That's the solution I'm talking about

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.

I'm completely new in php so I just want to know if there is point to try make it work before upgrading to full version.

Thanks in advance for any answers.

1 Answers
Abu Ghufran answered 9 years ago

Hello,

This should work in free version.

$col["formatter"] = "function(cellval,options,rowdata){ return jQuery.jgrid.htmlDecode(cellval); }";
$col["unformat"] = "function(cellval,options,rowdata){ return jQuery.jgrid.htmlEncode(cellval); }";

Your Answer

20 + 19 =

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?