Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jun 27, 2007 22:06
open dhtmlx forum
How to disable Sorting of Rows in TreeGrid

Hi

Can Anybody let me know how to disable sorting of rows on Clicking the header of the Treegrid . Kindly let me know as my first element goes right to the bottom of the grid on clicking the header

Thanks in Advance


Answer posted on Jun 28, 2007 16:30
You can enable|disable sorting for any column by
    grid.setColSorting(....

for example
    grid.setColSorting("na,str,int,na");
will define sorting as
    first column - not available
    second column - as strings
    third column - as numbers
    4th column - not available


Answer posted on Jun 29, 2007 14:51
How to disable the Sorting for blank grids ... I.e if i sort  the blank grids comes right on top and the the grid with values goes to the bottom
Answer posted on Jul 04, 2007 12:19
This can be caused by sorting rules - empty strings and numbers couted as lesser values, so in case of ASC sorting they coming to top.
You can create custom sorting functionality which will work in any custom way- please check
    samples/pro_sort.html
Answer posted by Stanislav (Support) on Dec 01, 2014 12:16

Not much can be said in addition to the reply above, but you also can check java export to excel and ajax wysiwyg editor and find out what we have probably missed in our explanation.