PDA

View Full Version : Custom CSS for First and Last Grid Rows in each Group



neurodon
11 May 2012, 2:17 PM
I'm using the 'grouping' feature in the grid panel.. and it creates a sub-table with rows beneath it. Is there any way using Ext directly to add a CSS class to the first and last rows of that sub-table?

ZachG
11 May 2012, 2:46 PM
A grid's view has a getRowClass() method that is called on each row. You could use that to put on the class by detecting the record's position in the group.




viewConfig:{
getRowClass:function() {
// Do something in here
}
}