问题描述
我在jQGrid中遇到一个问题,当列名稍大并且如果将resizable设置为false时,它不显示排序图标.在大型显示器中,它显示正确.但是在笔记本电脑和其他小型显示器中,它隐藏了排序图标.如果标题文本很大,我们可以包装标题以便将其与排序图标一起显示在下一行吗?
I have a problem in jQGrid that when the column name is little large and if resizable set to false, it is not showing sort icons. In large monitors it is showing correctly . But in laptops and other small displays, it is hiding the sort icons. Can we wrap the title so it will be shown in next line along with the sort icons if the header text is large ?
推荐答案
您描述的问题是引入新选项的主要原因
The problem which you describes was the main reason of the introduction of new option
sortIconsBeforeText: true
在免费jqGrid 中.您可以在演示中看到的结果 http://jsfiddle.net/OlegKi/qzxwfquq/4/.我建议您也添加选项headertitles: true
.它允许用户以工具提示的形式查看列标题的全文:
in free jqGrid. The results you can see on the demo http://jsfiddle.net/OlegKi/qzxwfquq/4/ . I recommend you to add the option headertitles: true
too. It allows the user to see the full text of the column header as tooltip:
这篇关于jQGrid总是显示排序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!