Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Nishan on Jun 02, 2009 21:34
open dhtmlx forum
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
Answer posted by dhxSupport on Jun 03, 2009 01:26
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 http://www.dhtmlx.com/docs/products/dhtmlxConnector/index.shtml
Answer posted by Nishan on Jun 03, 2009 07:18
Hi,

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

Thanks,
Nishan
Answer posted by dhxSupport on Jun 03, 2009 07:47
In dynamic loading onXLE event fired after each xml loaded