Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by AMB on Oct 23, 2008 02:54
open dhtmlx forum
Server side sorting

Hi, I'm trying to set up my sortGridOnServer function. At the moment the index that gets passed changes if the column moves, which means that the server doesn't know which column we're sorting by. Any ideas?
Answer posted by Support on Oct 23, 2008 06:09
You can define column IDs
   grid.setColumnIds("alfa,beta, ....");
and use 
   grid.getColumnId(index)
to convert indexes to ids. 
Column ID sticked to column , so it not affected by moving.