JQuery jQGrid expand /collapse grid on caption layer click

前端 未结 4 1444
谎友^
谎友^ 2021-01-07 04:20

Is there any method to expand/collapse the grid by clicking on the caption layer? I have 3 very large tables that are displayed on a 1680x1050 screen which are loaded by def

4条回答
  •  春和景丽
    2021-01-07 04:50

    Perfect that did the trick. Thank you a lot! So, acording to Oleg to expand/collapse the entire table by clicking on the titlebar(caption layer) you can use:

     $(myGrid[0].grid.cDiv).click(function() {
                $(".ui-jqgrid-titlebar-close",this).click();
            });
    

    where myGrid is:

    var myGrid = jQuery("#jquery_grid");
    

提交回复
热议问题