这样写:$( pGridId ).closest(".ui-jqgrid-bdiv").css({ 'overflow-x' : 'hidden' });
参数:
shrinkToFit:false,
( autoScroll: true,)
例子如下:
http://z3sm2012.iteye.com/blog/1431549
{name:'inventoryCode',index:'inventoryCode', 160, editable:true,align:"center"},
- {name:'status',index:'status', 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');
}
}