Format cells

QuestionsFormat cells
David Mills asked 10 years ago

Hi

I want to change the color of a cell after check if it exist.
I am using the example and figured this par out…

$f2 = array();
$f2["column"] = "MethodIdFK";
$f2["css"] = "'background-color':'#00FF00'"; // must use (single quote ') with css attr and value
$f2_conditions[] = $f2;

$g2->set_conditional_css($f2_conditions);

but I want to check is the value exist in another table then change the color?

1 Answers
Abu Ghufran answered 10 years ago

What you have to do is, to make that new table field add as a grid column, (using join) and then set it in condition.

http://pastebin.com/ZtJjcwZz

Your Answer

18 + 20 =

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?