DHTMLX Docs & Samples Explorer

setColSorting(sortStr)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid.js

set column sort types (avaialble: str, int, date, na or function object for custom sorting)

  • sortStr - sort codes list with default delimiter
   mygrid.setColSorting("int,str,date,na,sortingFunction")

See also: getSortingState