DHTMLX Docs & Samples Explorer

setSortImgState(state, ind, order, row)

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

sets position and visibility of sort arrow

  • state - true/false - show/hide image
  • ind - index of column
  • order - asc/desc - type of image (optional, “asc” by default)
  • row - one based index of header row (used in multirow headers, top row by default)
   //minimal parameters set
   mygrid.setSortImgState(true,1)
   //maximal parameters set
   mygrid.setSortImgState(true,1,"des",2)
   //hide sorting image
   mygrid.setSortImgState(false)

See also: sortRows