question

Questionsquestion
meisam asked 11 years ago

hi
i can not use $col["on_display_data"]

your example in your document makes me confuse

please send me below example:

assume, we have grid with 3 columns A,B,C
i want , the grid display "ok" in C column, if A+B is more than 5

thanks

1 Answers
Abu Ghufran answered 11 years ago

It is doable with on_data_display, which is supported in licensed version.
Refer docs for it's usage.

For extended conditional data, you can also have callback function, that will allow you to display based on row data. For e.g.

$col["on_data_display"] = array("display_keyword","");

function display_keyword($data)
{
$kw = $data["keyword_name"];
$numKeywords = count(explode("n",$pass));
if ($numKeywords > 3)
return $numKeywords." Keywords";
else
{
$pass = str_replace("+"," ",$pass);
return $pass;

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?