当用户点击箭头元素时,我隐藏了网格部分。似乎将GridState设置为隐藏不会做任何事情。我还根据jqgrid是否已折叠或是否已展开来调整网格大小。我无法对jqgrid JS文件进行更改,那么它将如何完成此任务呢?
function resizer(element)
{
var element1 = $('#Table').height();
if (element.className == "ui-icon ui-icon-circle-triangle-s") {
$('#Table').css({ height: element - 77 });
//initializedExtendersGrid.trigger("reloadGrid");
$(extendersGridSelector).jqGrid('setGridState', 'hidden');
//$('.ui-jqgrid-hdiv').hide();
}
if (element.className == "ui-icon ui-icon-circle-triangle-n") {
$('#Table').css({ height: element + 77 });
$(extendersGridSelector).jqGrid('setGridState', 'hidden');
//$('.ui-jqgrid-hdiv').hide();
}