Is it possible to remove the expand/collapse button from the jqGrid header?

后端 未结 3 646
梦毁少年i
梦毁少年i 2020-12-30 20:07

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. An

3条回答
  •  自闭症患者
    2020-12-30 20:29

    Use this code to colllapse all jqgrid on the page

    elements = $('div.ui-jqgrid-bdiv');
    elements.each(function() { $(this).css("display", "none"); });
    elements = $('div.ui-jqgrid-hdiv');
    elements.each(function() { $(this).css("display", "none"); });
    $('#JQGrid_pager').hide();
    $('#rs_mJQGrid').hide();
    

提交回复
热议问题