Conditional Row Format on cell

QuestionsConditional Row Format on cell
Greg asked 9 years ago

Hi,

Looking at the examples in the demos to implement conditional formatting, I have implemented the below.

$f = array();
$f["column"] = "Person"; // exact column name, as defined above in set_columns or sql field name
$f["op"] = "cn"; // cn – contains, eq – equals
$f["class"] = "myAltRowClass";

I am understanding cn (contains) to mean when data is present trigger the class, else do not. However in my case, it seems to be showing regardless.

Also is there a way to and the conditions? I.e., this field + this field show formatting.

As a side note – great control, this is saving me a ton of time in implementation – great job.

1 Answers
Abu Ghufran answered 9 years ago

Following code sample uses JS based multiple conditions for formatting. You can use ( val == "" ) check for blank cell data formatting.

Code sample: http://hastebin.com/hukisijeya.php

Your Answer

5 + 12 =

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?