PDA

View Full Version : extjs how to change CSS in a grid cell



shanika
2 Dec 2010, 9:03 PM
Hi
I am using a row editor and when the user click update it validates the row.
Now I need to highlight the fields which are failed in validation process.

I used
grid.getView().getCell(rowIndex,5).style.backgroundColor = 'Red';

But when the Grid refresh using
grid.getView().refresh();

the backgroundColor dispersers.

How to mark the invalid columns ?:-/

//Shanika

Condor
3 Dec 2010, 3:10 AM
You have to do this from the column renderer (which also means that you need a way to store the errors for every row).

shanika
5 Dec 2010, 8:04 PM
thank you Condor !it worked