colModel :[
{name:'action', index:'action', width:220,
sortable:false, formatter:valueToActionFormatter}
]
当我指定sortable
选项false
时,标题仍然获得ui-jqgrid-sortable
css类。 Google 表示 setColProp
可以解决这个问题。但怎么做呢?有什么想法吗?
最佳答案
你是对的。 ui-jqgrid-sortable
定义 cursor:pointer
而不是 cursor:default
,这不太好。你不是第一个这么想的人。您可以在 the demo 中找到解决方法。我为 the answer 创建的.
更新:光标在不可排序列上的问题在free jqGrid 4.8中不再存在。 .
关于jquery - 无法排序的标题获取 ui-jqgrid-sortable css 类,如何更改它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6581472/