开发者

jqgrid expand after hiddengrid:true

Creating JQGRID object i put hiddengrid:true. Now, to expand grid i need to press special button on the right I want it to expand automatically during update

something like this:

function updateTable(value,date_in,date_out) {
  $('#le_table1').jqGrid('setGridParam', {gridstate: "visible"}).trigger("reloadGri开发者_如何学编程d");
};

but is not work..


you can use method setGridState:

  • $("#grid_id").jqGrid('setGridState', 'visible');
  • $("#grid_id").jqGrid('setGridState', 'hidden');


You can do following

$(".ui-jqgrid-titlebar-close",$('#le_table1')[0].grid.cDiv).click();

to simulate the click on the small button from the right side of the grid title which expand/collapse the grid (see this answer for details and some demo examples).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜