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?

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.