PDA

View Full Version : how to give custom css to Rows in Grid Panel



pailyanish
30 Jun 2009, 11:20 PM
Hi,

I have created a sample Grid Panel it has two columns content in two columns are also coming.i would like to give custom css for the rows in that grid.how can i implement it.how to give css in js file.can anyone give a sample code.i would like to change font size of the contents displayed in columns.

can anyone help me out

thanks in advance

Animal
30 Jun 2009, 11:24 PM
http://extjs.com/deploy/ext-3.0-rc2/docs/?class=Ext.grid.Column&member=id

Condor
30 Jun 2009, 11:33 PM
As Animal pointed out:
You can assign an id to a column, which will be used in the x-grid3-td-<id> and x-grid3-col-<id> css classes assigned to the column cells.

For rows you should create a getRowClass method (http://extjs.com/deploy/ext-3.0-rc2/docs/?class=Ext.grid.GridView&member=getRowClass).