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).
精彩评论