var grid = new Ext.grid.GridPanel({
id:'gridls',
loadMask:{msg:'数据处理中...'},
cm:new Ext.grid.ColumnModel(
[
csm,
{header:"化验日期",dataIndex:"assayRecordAssayDate",sortable:true,width:100},
{header:"生产单位",dataIndex:"innerUnitName",sortable:true,width:100,renderer:showConsigneeName}
]),
sm:csm,
store:store,
items:[
toolbar1
],
tbar:toolbar2,
bbar:pageBar
});
id:'gridls',
loadMask:{msg:'数据处理中...'},
cm:new Ext.grid.ColumnModel(
[
csm,
{header:"化验日期",dataIndex:"assayRecordAssayDate",sortable:true,width:100},
{header:"生产单位",dataIndex:"innerUnitName",sortable:true,width:100,renderer:showConsigneeName}
]),
sm:csm,
store:store,
items:[
toolbar1
],
tbar:toolbar2,
bbar:pageBar
});
可以看到,很简单, toolbar1 是放在 Panel 的 items 属性里的,而toolbar2 是采用原本的方式放在tbar属性中
本文介绍了一种使用vargrid创建网格面板的方法,详细展示了如何设置化验日期、生产单位等列属性,并通过实例说明了如何整合不同工具栏。

5122

被折叠的 条评论
为什么被折叠?



