PDA

View Full Version : Apply background color to selected row..



mandardadpe
3 Sep 2012, 1:07 AM
I want to apply background color to selected row, ".X3-grid-row-selected" this is default css class.
I dont want use that,please tell me that how can I apply css class to selected row.
Please provide solution as early as possible.

Thanking You

sword-it
3 Sep 2012, 2:18 AM
Hi,

You can use following code:
you can define a class rowColor and give color accordingly your choice



Ext.fly(yourgrid.getView().getRow(rowindex)).addClass('rowColor');