Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Aug 06, 2008 08:01
open dhtmlx forum
Column Sorting

I'm using the setColSorting("str,str,str") function so that the headers of my multiline, multiselect grid will auto sort when the user clicks on the header. It's not working. What would cause it to not work?
Answer posted by Support on Aug 06, 2008 08:08

The setColSorting command allows to define sorting type for each column , in your case columns 1-3 will be sorted as strings when you click on header. 
The sorting will be executed only against data part of grid, the sorting will not affect headers ( except of sorting marker appearance )

Answer posted on Aug 06, 2008 08:18
I understand that the data beneath the columns will be sorted.  I"m clicking on the header expecting the data to be sorted but it's not working.  What could be causing this?
Answer posted by Support on Aug 06, 2008 09:23

The only issue which can cause such problem - non unique row IDs, please be sure that each row has unique ID (row@id attribute in case of loading from XML )

If issue still occurs for you - please provide any kind of sample where problem can be reconstructed.