i want to make the "class=col_highlight" of a cell active on

i have a grid with the following xml



-

-

1

Environment



-

1

Water debit(EN)

1









i want to put the “class=col_highlight” in a cell , only after the user edits a cell (on teh web page ) and gives the value “between”


You can use complex css rules to enable|disable active ones, and onEditCell event to catch moment when rules need to be changed



 




 .rule_active .col_highlight{
      background-color:red;
}








grid.attachEvent(“onEditCell”,function(stage,id,ind,value){
        if (stage = 2 && value==“between”) grid.entBox.className+=" rule_active";
        return true;
});



as result, css rule will be applied only after some value in grid will be edit to “between”