Hi
I have a conditional in master (which works)
$f = array();
$f["column"] = "refcount";
$f["op"] = ">";
$f["value"] = "2";
$f["cellcss"] = "'background-color':'#82FA58'";
$f_conditions[] = $f;
$grid->set_conditional_css($f_conditions);
and a conditional in detail, which doesn't
$f = array();
$f["column"] = "type";
$f["op"] = "cn";
$f["value"] = "meta";
$f["cellcss"] = "'background-color':'#82FA58'";
$f_conditions[] = $f;
$grid->set_conditional_css($f_conditions);
Does conditional CSS not work in detail? Is there a fix?
Thank you
It should work in both grids.
However make sure variables are reset in second grid, if same names are used.
Refer: demos/master-detail/master-multi-detail.php for working demo.
Works, thank you.
For clarification:
Master
$f = array();
$f["column"] = "refcount";
$f["op"] = ">";
$f["value"] = "2";
$f["cellcss"] = "'background-color':'#82FA58'";
$f_conditions[] = $f;
$grid->set_conditional_css($f_conditions);
Detail
$f_conditions = array(); <<<<<<
$f = array();
$f["column"] = "type";
$f["op"] = "cn";
$f["value"] = "meta";
$f["cellcss"] = "'background-color':'#82FA58'";
$f_conditions[] = $f;
$grid->set_conditional_css($f_conditions);