Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Marcos on Feb 12, 2008 08:42
open dhtmlx forum
sorting dhtmlXGridFromTable

Hi, i tryng to use dhtmlxgridfromtable.
The table has 4 columns, and the browser display the grid ok
My problem is when i want to sort by some column the grid only be sorted by the first column, independent the column that i make click with mouse.

It means:
I click column 1 - grid sort by col 1
I click column 2 - grid sort by col 1
I click column 3 - grid sort by col 1
I click column 4 - grid sort by col 1

<Script> var mygrilla = new dhtmlXGridFromTable("GRIDDATOS");
mygrilla.setSkin("xp");
mygrilla.setImagePath("../static/imgs/")
mygrilla.enableAutoHeigth(true,300);
mygrilla.setColSorting("str,str,str,str");
</script>

whats can be wrong????
thanks for any help.

Marcos
Answer posted by Support on Feb 13, 2008 03:33
Unfortunately the problem can't be reconstructed locally - sorting works correctly for grids created from HTML in local samples.
    http://dhtmlx.com/docs/products/dhtmlxGrid/samples/initialization_loading/grid_int_from_html.html
    ( the sample is not perfect - data is the same in both columns, but you can edit it - sorting will work for second column )

If problem still occurs for you - please provide any kind of sample where problem can be reconstructed. ( you can send it directly to support@dhtmlx.com )