var grid = new Ext.grid.GridPanel({
store : store,
viewConfig : {
forceFit : true
},
autoExpandColumn : 'content',
columns : [{
header : "版本",
width : 50,
dataIndex : 'ver',
sortable : true
}, {
header : "类型",
width : 70,
dataIndex : 'type',
sortable : true
}, {
header : "人员",
width : 70,
dataIndex : 'person',
sortable : true
}, {
header : "操作单位",
width : 100,
dataIndex : 'unit',
sortable : true
}, {
id : 'content',
header : "命令内容",
// width : 100,
dataIndex : 'content',
sortable : true
}, {
header : "时间",
width : 150,
dataIndex : 'person',
sortable : true
}],
本文介绍了一个具体的 ExtJS GridPanel 的配置实例,详细展示了如何设置 GridPanel 的各项属性,包括 store 数据源绑定、列定义及宽度自适应等。
1111

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



