java easyui冻结列宽问题
$('#Rng').datagrid({url:"servletre?itype=1",title:'列表',loadMsg:"正在加载,请稍等...",width:($...
$('#Rng').datagrid({
url: "servletre?itype=1",
title: '列表',
loadMsg:"正在加载,请稍等...",
width: ($(window).width()*0.99-10),
height: ($(window).height()*0.99-50),
fitColumns: true,
nowrap:false,
singleSelect:true,
rownumbers:true,
pageSize:20,
pageList:[20,40,80],
pagination:true,
idField:'projectName',
frozenColumns:[[
{field:'ck',checkbox:true},
{field:'projectName',title:'项目名称',width:150,align:'center'},
]],
columns:[[
{field:'pDesc',title:'进展说明',width:100,align:'center'},
{field:'pTime',title:'预计结单时间',width:120,align:'center'}
]]
});
冻结列,columns里的宽页面缩小,也会缩小,不能固定。 展开
url: "servletre?itype=1",
title: '列表',
loadMsg:"正在加载,请稍等...",
width: ($(window).width()*0.99-10),
height: ($(window).height()*0.99-50),
fitColumns: true,
nowrap:false,
singleSelect:true,
rownumbers:true,
pageSize:20,
pageList:[20,40,80],
pagination:true,
idField:'projectName',
frozenColumns:[[
{field:'ck',checkbox:true},
{field:'projectName',title:'项目名称',width:150,align:'center'},
]],
columns:[[
{field:'pDesc',title:'进展说明',width:100,align:'center'},
{field:'pTime',title:'预计结单时间',width:120,align:'center'}
]]
});
冻结列,columns里的宽页面缩小,也会缩小,不能固定。 展开
1个回答
2014-11-12
展开全部
把fitColumns: true,
改成fitColumns: false,
改成fitColumns: false,
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询