可以从jqGrid标头中删除expand/collapse列吗? [英] It's possible to remove the expand/collapse column from the jqGrid header?
问题描述
我正在使用 http://www.trirand.com/jqgrid可用的jqGrid /jqgrid.html ,并且找不到在标题右上角禁用其展开/折叠"按钮的方法.有人知道是否有这样做的选择吗?
I'm using the jqGrid available at http://www.trirand.com/jqgrid/jqgrid.html and I can't find a way to disable its expand/collapse button on the top right of the header. Anyone know if there's an option to do that?
我尝试了jQuery(#list13").hideCol('subgrid');
但它行不通,并使情况变得更糟.
I tried jQuery("#list13").hideCol('subgrid');
but it does not work and made it worst.
推荐答案
You need adjust additionally the value of colspan attribute of td.subgrid-data
which hold the main information of subgrid. The structure of the subgrid row you can see on the picture below
我已经回答了一个非常接近的问题.在答案中,您应该找到解决问题所需的所有信息和演示.
I answered already on very close question. In the answer you should find all information and demos needed to solve your problem.
这篇关于可以从jqGrid标头中删除expand/collapse列吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!