How to highlight the row if the checkbox in col 0 is checked?

I have a table where fircolumn is a checkbox. When the checkbox is checked, I want the background color to be red. How to achieve this?

I have tried onAfterChange - this highlights and then disappers.

I have tried onAfterSelection but this does not check if the checkbox is selected.

Please advise.

Hi @hbhattiprolu

you have to use a classes to make it remain after rerendering. Here’s a working example: http://jsfiddle.net/handsoncode/5b6d86jp/

You need to add a class that gives the red background but you need one class for resetting this meta data (in this case reset class). Skipping the reset class won’t allow you to change background when value is changed to true.