PDA

View Full Version : colorize selected rows



dascoco
20 Feb 2012, 6:53 AM
Hey,

I have a Grid with a SelectionModel, which is limited of 2 selections. How can I colorize the selected rows? every selected row in a other color?

mitchellsimoens
20 Feb 2012, 7:21 AM
You can add a CSS class to a selected row.

skirtle
20 Feb 2012, 7:40 AM
Do you want both selected rows to be the same color as each other or in two different colors?

dascoco
20 Feb 2012, 7:43 AM
And than I must refresh the grid?
grid.getView().refresh();

@skirtle: in two different colors