Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jul 08, 2008 07:15
open dhtmlx forum
How can I render rows programatically?

How can I render rows programatically?  I am using the grid and I would like to render row 50 even though the row wasn't set to be rendered initially?  I cannot use enableSmartXMLParsing b/c I am not using the tree grid and I don't want to render all rows due to performance issues.  Is there any way around this?  I want to render only what I need and then would like to render rows programatically when needed. 
Answer posted by Support on Jul 08, 2008 08:20
>>and I don't want to render all rows due to performance issues
The plain grid supports smart rendering mode.
http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/loading_big_datasets/grid_dyn.html?un=1215531510000
In such mode grid renders only rows which are currently visible, which allow to greatly improve performance.

The smart rendering can be used in two modes
a) static - all data loaded at once ( sample above )
b) dynamical - data loaded from server on demand ( has sense for huge datasets )
    http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/loading_big_datasets/50000.html?un=1215531587000

Mode works for both Grid and TreeGrid.