Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by garuda on Sep 30, 2009 22:04
open dhtmlx forum
setColSorting not working

Hello,

I am trying to sort my grid using setColSorting, but it doesn't seem to work.
this is my code:

mygrid = new dhtmlXGridObject("mygrid_div");
            mygrid.setImagePath("imgs");
            mygrid.setHeader("Count,Name,Phone,Registeration Id,Email,Day,Time");
            mygrid.setColTypes("ro,ro,ro,ro,ro,ro,ro");            
            mygrid.setInitWidths("100,200,100,*,200,100,100");
            mygrid.setColAlign("left,left,left,left,left,left,left");
            mygrid.setColSorting("int,str,int,str,str,int,int");
            mygrid.setSkin("light");
            mygrid.init();
            mygrid.loadXMLString(<%=str%>);
Answer posted by dhxSupport on Oct 01, 2009 01:25
Unfortunately we cannot reproduce this issue locally. Please check example here http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/12_initialization_loading/07_init_grid.html