easyui加载datagrid时随着窗体大小改变而改变
function initTable() {
$('#tt').datagrid({
width: $(document).width() - 20,
height: 420,
//fit:true,
fitColumns: false,
nowrap: true,
singleSelect: false,
pagination: true,
pageSize: pSize,
pageNumber: 1,
rownumbers: true,
loadMsg: "正在加载数据,请稍候...",
showFooter: true,
//checkOnSelect: false, //选中时,check
//selectOnCheck: false, //check时,选中
frozenColumns: [[{ field: 'ck', checkbox: true}]]
});
}
$('#tt').datagrid({
width: $(document).width() - 20,
height: 420,
//fit:true,
fitColumns: false,
nowrap: true,
singleSelect: false,
pagination: true,
pageSize: pSize,
pageNumber: 1,
rownumbers: true,
loadMsg: "正在加载数据,请稍候...",
showFooter: true,
//checkOnSelect: false, //选中时,check
//selectOnCheck: false, //check时,选中
frozenColumns: [[{ field: 'ck', checkbox: true}]]
});
}