Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 21, 2007 17:08
open dhtmlx forum
We need to have sorting.  It HAS to be able to sort on all the elements (we will have only strings in he...

We need to have sorting.  It HAS to be able to sort on all the elements (we will have only strings in here) or rows. Right now it just sorts on the current page, and it breaks very easily.
Answer posted on Feb 21, 2007 17:09
Your request for making it sort all data has some potential issues:
 
1. For now we do not parse all rows. This helps to improve performance of grid with paginal output. But if you want to sort all loaded rows we’ll need to parse them all before sorting. This can take time (depending on how much rows in total and how much of them already parsed). Btw, it sorts not only current page, but also data from all previous pages. But I understand that this doesn’t help much…
2. If you use dynamical loading together with paging, it can sort on client side only rows already loaded. Rows which are loaded after sorting will be not sorted.
 
Way out: in general we do not recommend using client side sorting for big grids as such kind of movements in DOM is rather slow. It is better to interrupt client side sorting, clear grid with clearAll() and call loadXML(…) method to load data sorted on server.
Answer posted by Andrei (Support) on Dec 02, 2014 01:23

Having solved the problem mentioned above, you may also look through the possible related problems with datagrid data and ajax dropdown autocomplete.