Check documentation for the latest version of dhtmlxSuite setSortImgState DHTMLX Docs

setSortImgState

sets the position and visibility of a sort arrow

void setSortImgState(boolean state,number ind,string order,number row);
statebooleantrue/false to show/hide an image
indnumberthe index of a column
orderstringasc/desc - the type of an image (optional, "asc" by default)
rownumberone-based index of the header row (used in multirow headers, the top row by default)

Example

//minimal parameters set
mygrid.setSortImgState(true,1);
//maximal parameters set
mygrid.setSortImgState(true,1,"desc",2);
//hide the sorting image
mygrid.setSortImgState(false);

Back to top