Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unsortable headers get ui-jqgrid-sortable css class, how to change it?

colModel :[ 
    {name:'action', index:'action', width:220,
     sortable:false, formatter:valueToActionFormatter}
]

when I specifies the sortable option false, the headers still get ui-jqgrid-sortable css class. Google said setColProp can solve this issue. But how to do it? Any idea?

like image 632
Cynial Avatar asked Feb 04 '26 14:02

Cynial


1 Answers

You are right. It's not nice, that ui-jqgrid-sortable define cursor:pointer instead of cursor:default. You are not the first person which think so. You will find the workaround in the demo which I created for the answer.

UPDATED: The problem with the cursor on non-sortable columns is not exist more in free jqGrid 4.8.

like image 87
Oleg Avatar answered Feb 06 '26 05:02

Oleg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!