PDA

View Full Version : Ability to hide/show Grid rows


jarrod
10-31-2006, 02:58 AM
Will be great if hiding/showing of rows is supported.

Currently, the clunky way is probably to copy the data of rows to be hidden, followed by removing them from the grid, and re-insert them back to the grid when you need to unhide them.

Meanwhile, tried overriding the renderRow() method, but ran into complications coz the row.top positions are absolute and computed based on their rowIndex * rowHeight.

jack.slocum
10-31-2006, 05:03 AM
That can all be overridden. There is a thread in the help forum that explains how to make the rows static positioned. Once they are you can probably display:none them.

http://www.jackslocum.com/forum/viewtopic.php?t=90

jarrod
10-31-2006, 12:42 PM
Thanks, noticed that grid.css has included those lines.

Meanwhile, seems that the only critical one is to set the ygrid-row to position:static.
Also, managed to get such grids to co-exist with the default position:absolute grids.