Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Oct 07, 2008 07:46
open dhtmlx forum
DHX Grid: Load Grid with one column pre-sorted

Hi there,
I want to sort the grid based on one column's value. Means the grid should be loaded with pre-sorted of one column's value. How to do that ??
Answer posted by Support on Oct 07, 2008 08:21
You can use grid.sortRow to force sorting

grid.loadXML(url,function(){
      grid.sortRow(index,sorting_type,order);
})