View Full Version : How can i achieve rowspan,colspan feeatures for a grid cell ?

17 Aug 2009, 1:15 AM
can any body help me out in getting the rowspan , colspan features for grid cells. Is this feature only available for the column headers ??

19 Aug 2009, 3:28 AM
now this is not included.

you can write your own GridView. just now each row is a table. so it becomes very complicated to make this rowspan but colspan is more easy.

(but look at the class ColumnHeader how complicated it can be...)

22 Aug 2009, 5:49 AM
write a listener for your store for the "load" event.

store.on( "load",function() {
for ( var i = 0; i < grid.getStore().getCount() ; i++ ) grid.getView().getCell(i,0).rowSpan = 2 ;
} ) ;

You can sub "0" for any cell and your grid (although doing anything in the middle will somewhat break your rowBody).

I do stuff like this to allow for multiple "views" of the grid, and change the layout on button handlers.

24 Aug 2009, 9:52 AM
Thanks for the reply. I guess this one will set height of each row and not like a HTML table rowspan.