Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ramakrishna on Jul 29, 2008 07:05
open dhtmlx forum
DHTMLX Grid : Disable showing sorting image arrow.

Hi,
I dont want to show the sorting arrow image while sorting for A PARTICULAR column.
How to do it ?
I used following, but not working.


:: <gridObject>.setSortImgState(false, 0, "asc"); // oth Column.
:: na in setColSorting.
Answer posted by Support on Jul 29, 2008 09:05
setSortImgState method change current state of image, and doesn't affect later changes of its state.

You can achieve necessary behavior by using onAfterSorting event
    grid.attachEvent("onAfterSorting",function(ind){
       if (ind==0)
            <gridObject>.setSortImgState(false, 0, "asc");
    });


In such case, each time, after sorting, grid will hide sorting image, if it was sorted by necessary column ( first column in snippet above )