Grid: Dynamic loading and Column Sorting

Hi,



I am dynamically loading xml to the grid. And I want to disable sorting until all the rows have been loaded.



Once all the data is loaded, sorting must be enabled.



What will be the way to go ?



Thanks in advance,

Nishan

You can disable sorting before grid was loaded using “onXLS” and “onXLE” events. “onXLS” event occurs before data loading from XML has started. “onXLE” eventoccurs simultaneously with ending XML parsing, new items are already available in the grid. Those event availible in PRO version only. Note that if you are using dynamic smart rendering dates loads to the grid partially. New portion of rows loads to the grid after you scrolling grid down. So native grid’s filtering will not work in such case because by the time of sorting not all rows are availible. You should use server-side sorting. Since dhtmlxGrid ver 2.1 we have extention dhtmlxConnectors which hepl you implement server-side sorting and filtering. Please see more inforation here dhtmlx.com/docs/products/dht … ndex.shtml

Hi,

In dynamic loading, when is the onXLE event fired ? After all the rows are loaded or after each xml load ?

Thanks,
Nishan

In dynamic loading onXLE event fired after each xml loaded