Conditional_css not working after edit.

QuestionsConditional_css not working after edit.
Warren Davis asked 4 years ago

I’ve set some conditions to turn the background of a cell a particular color based on its contents.

$f = array();
$f["column"] = 
$f["op"] = "eq"; 
$f["value"] = "REJECTED";
$f["cellcss"] = "'background-color':'#Fc3939'";
$fMS_conditions[] = $f;

$f = array();
$f["column"] = "msStatus"; 
$f["op"] = "eq"; 
$f["value"] = "APPROVED";
$f["cellcss"] = "'background-color':'#6CF569'";
$fMS_conditions[] = $f;

$g->set_conditional_css($fMS_conditions);

This works perfectly. However, I have my grid set up for cell editing…

$grid["cellEdit"] = true;
$grid["reloadedit"] = true;

After changing the value of a cell, the conditional css isn’t reflected. (Meaning the cell background color stays the same.)
I tried this with row editing as well with the same results.
It seems that those conditions should be honored whenever
the value of a cell changes. How can I get that to work?
Thanks!

2 Answers
Abu Ghufran Staff answered 4 years ago

I’ll be updating back after generating this case.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Abu Ghufran Staff answered 3 years ago

Just to log result, it’s solved by custom JS work around.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

20 + 16 =

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?