Hi i have a problem in my jqgrid when i am clicking the pane the grid size is not resizing .how to resize it ?.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Not sure if this is what you mean, but this should keep your grid at 100% width:
$(window).bind('resize', function() {
$("#jqgrid").setGridWidth($(window).width());
}).trigger('resize');
回答2:
The above answer was good, but this solves both problems. Resizing now and Resizing when the window or IFrame gets resized.
// Size me now...
$("#list1").setGridWidth($(window).width());
// Size me later...
$(window).bind('resize', function () {
$("#list1").setGridWidth($(window).width());
}).trigger('resize');
Happy coding!