最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - jqgrid expand after hiddengrid:true - Stack Overflow

programmeradmin4浏览0评论

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 badges
Add a ment  | 

2 Answers 2

Reset to default 8

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)

  1. 暂无评论