Conditional formatting based on changed value
Conditional formatting based on changed value
KimvdLinde
Posts: 30Questions: 8Answers: 0
Okay, I find how to do it in older versions, but how can I change the background color of a specific cell when I change the value with editor?
This discussion has been closed.
Answers
I change my individual cell classes and styles in the rowCallBack.
I do it by actually adding and clearing classes. My classes are determined in the .net code, not in javaScript
But, you should be able to do it in .css also
Now, if you are using zebra stripping, and sorting, you have to handle the hover conditions on the rows to show a nice row that changes color when the user hover's over it. Classes work much better for that purpose, you just need to define each color and it's :hover color when even or odd in a custom .css file
glenderson, that is helpful information, but it does not do the job for me as the values in the cell are also changed without an ajax call that throws the rowCallBack
For that reason, I would like to link it to something when the row is updated.
Okay, solved it: