Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by SFGolfer on May 01, 2009 10:22
open dhtmlx forum
Prevent clicking on header

I am disabling a particular column's sorting this way...

mygrid.setColSorting(",str,str,str");

However, clicking on the header still shows the up/down sorting arrows which confuses the user that sorting is actually occurring.

Is there a way to have the header not "respond" to the mouse click?
Answer posted by Support on May 01, 2009 14:52
You can fully disable sorting by setting its sorting type as "na"

mygrid.setColSorting("na,str,str,str");

Alternatively , you can use onBeforeSorting event and return false for unwanted colums - it will fully block the sorting as well.