[Dojo-interest] What do you use Grid for?
dmachi at dojotoolkit.org
Fri Dec 21 22:09:59 UTC 2007
>> - Virtual scrolling, I have virtual scrolling/paging, which is similar
>> to google reader behavior
> What is virtual scrolling/paging?
When you get to more than 300 or 400 nodes in a table it becomes
dreadfully slow in most cases. The virtual scrolling basically only
renders the nodes you are seeing so you can have 100s of thousands of
rows but only the 20 or so that you are scrolled to and are visible are
actually in the dom.
>> - dynamically set the height of the grid and display more data to fill
>> the screen real state
> That sounds cool. I was thinking of having a scroll bar.
Yeah of course, but in reality its not well supported. For example if
you have a div and you want the visible portion of the table to fill
that div, leave the table headers at the top, and put the scrollbar for
the tbody. You basically want to set a fixed size for the table to the
size of the containing div (or 100% h/w) and then put overflow: auto on
the tbody. Unfortunately ie doesn't support overflow on the tbody
making any number of these hacks needed just to make the table look
right in the first place. Add to that the problems of performance
mentioned above and you end up with the need for the grid :)
More information about the Dojo-interest