jquery - 无法排序的标题获取 ui-jqgrid-sortable css 类,如何更改它?

标签 jquery jquery-ui jqgrid

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/

相关文章:

javascript - 如何比较两个 jQuery 对象的身份?

jquery - 使用 Less 通过实时预览更改 CSS 值

jquery - 为什么 jQuery 模板要给某些字符串添加双引号

jquery - IE 中的圆 Angular 使用 ui-corner-all

jqgrid - 仅在日期上使用日期选择器过滤 jqGrid 日期时间列

javascript - jqGrid - 如何获取当前网格的标题?

javascript - 将外部 html 的 DIV 内容移动到另一个文件的 Div

css - Jquery UI 表单主题

jquery - 如何仅通过在 jQuery 中按下键盘来搜索无序列表?

jqgrid - 动态更改JQgrid列名