注:代码提自工程,没做过多的修改,不一定能运行起来,只是贴出来共大家参考,格式太难调了 请谅解,有任何疑义可以联系我。
var lockcml = new Ext.grid.LockingColumnModel([
...{
align:"center",
header: "组织机构代码",
dataIndex: 'dwdm',
//sortable :true,
locked:true, //锁
width: 100,fixed:true
// fixed:true,
}
]);
//cm.defaultSortable = true;
if(!lockgrid)...{
lockgrid = new Ext.grid.LockingGridPanel(...{
el:'zfmxdiv',
width:850,
height:526,
loadMask: true,
store: zfxmstore,
cm: lockcml,
enableHdMenu:false,
bbar:new Ext.PagingToolbar(...{
pageSize: PAGE_LIMIT,
store: zfxmstore,
cls:'x-btn-text-icon details',
displayInfo: true,
displayMsg: '当前显示: {0} - {1} 总记录数目: {2}',
emptyMsg: "未检索到数据"
})
});
}
var lockcml = new Ext.grid.LockingColumnModel([
...{
align:"center",
header: "组织机构代码",
dataIndex: 'dwdm',
//sortable :true,
locked:true, //锁
width: 100,fixed:true
// fixed:true,
}
]);
//cm.defaultSortable = true;
if(!lockgrid)...{
lockgrid = new Ext.grid.LockingGridPanel(...{
el:'zfmxdiv',
width:850,
height:526,
loadMask: true,
store: zfxmstore,
cm: lockcml,
enableHdMenu:false,
bbar:new Ext.PagingToolbar(...{
pageSize: PAGE_LIMIT,
store: zfxmstore,
cls:'x-btn-text-icon details',
displayInfo: true,
displayMsg: '当前显示: {0} - {1} 总记录数目: {2}',
emptyMsg: "未检索到数据"
})
});
}