第1个回答 2016-12-09
可以这样写:$( pGridId ).closest(".ui-jqgrid-bdiv").css({ 'overflow-x' : 'hidden' });
参数:
shrinkToFit:false,
( autoScroll: true,)
例子如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{name:'inventoryCode',index:'inventoryCode', width:160, editable:true,align:"center"},
{name:'status',index:'status', width:90, classes:'colstatus', align:"center",formatter:formatStatus}
],
loadonce:false,
multiselect: false,
toolbar: [false,"top"],
sortname: 'updateTime',
sortorder: 'desc',
height:height,
shrinkToFit:false,
autoScroll: true,
loadError: function(xhr,st,err){
art.dialog.error("<s:text name='SYSTEM_ERROR'/>");
},
代码:
if (jQuery.browser.msie) {
$a = jQuery('.ui-jqgrid .ui-jqgrid-bdiv');
$a.css('padding', '0 0 15px 0');
var myheight = jQuery('#tableID').jqGrid('getGridParam','height');
if( myheight == '100%'){
$a.css('overflow-y', 'hidden');
}
}本回答被提问者采纳