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("reloadGrid");
};
but is not work..
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("reloadGrid");
};
but is not work..
Share Improve this question asked Dec 8, 2010 at 12:40 IvanIvan 131 silver badge3 bronze badges2 Answers
Reset to default 8you 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).