|
This example shows using editable, sortable and calculated TreeGrid with very large tables with more than 50,000 rows. For navigation you can use vertical scrollbar, mouse wheel, arrow keys, PgDn, PgUp, Home, End, Tab. Related attributes
Very large tablesThere are few advices how to use TreeGrid for grids with more then about 10 000 root rows. It is not related to huge trees, the tree can handle unlimited count of rows.All these advices are used only to speed up rendering and using TreeGrid, they do not concern about handling of such amount of rows, TreeGrid can handle unlimited rows count. For grids with more then 10 000 rows always use server paging (<Cfg Paging=’3’/>). Your server script must provide data for grid’s pages. You can use TreeGrid server component to help you with this task. The TreeGrid server can do nearly all functions required in server paging as creating pages according to sorting and filter settings. Also pre-calculates aggregate functions. Saves changes returned from client. And more. For grids with more then 50 000 rows use Extra short format to send list of pages. The TreeGrid server does it automatically. If possible, use all page of the same width and don’t return rows count for every page, but set <Cfg PageLength and RootCount /> attributes. The TreeGrid server does it automatically. Also increase <Cfg PageLength/> attribute according to count of columns in your grid. For 1 – 5 columns use 100, for 5-10 use 50 and for more columns use 30. Also use <Cfg FastPages/> attribute. Set it to value about 100. Higher value speeds up initial rendering but can slow down work with the grid and vice versa. For grids with more then 250 000 rows and all pages visible (<Cfg AllPages=’1’ />) use <Cfg PageLengthDiv/> attribute to reduce page size and all grid scroll height because some browsers have problems with too high scroll height. IE has problems with editing in tag with scroll height higher 5M pixels (about 277 000 rows of standard height). Mozilla has scrolling problems from about the same height. Set PageLengthDiv to your rows count / 200 000. For 1 000 000 set it to 5. For grids with more then 2 000 000 rows display only one page at once by using <Cfg AllPages=’0’/>.
If you use configuration menu, set <MenuCfg AllPages=’0’/>.
Also to suppress loading defaults for AllPages use AllPagesLap=’1’. |