求一段在fieldset中放一个gridpanel的代码 。ext刚开始用,实在搞不出来。 代码最好详细点。谢谢了

期待高手写个规整的代码
2025-05-11 14:58:51
推荐回答(2个)
回答1:

{
xtype : 'fieldset',
title : '历史记录',
collapsible : true,
items : [ {
xtype : 'gridpanel',
store : 'ComInfoHistoryStore', //Store
id : 'acceptComInfoGrid',
title : '',
columns : [ {

xtype : 'rownumberer'
}, {

dataIndex : 'infoStautsView',
text : '状态'
}, {
dataIndex : 'comPosition',
text : '故障位置',
flex : 1
}, {
dataIndex : 'comName',
text : '投诉人',
width : 65
}, {
width : 135,
dataIndex : 'comDate',
text : '投诉时间'
} ],
dockedItems : [ {
xtype : 'pagingtoolbar', // 分页插件
store : 'ComInfoHistoryStore',//Store
dock : 'bottom',
displayInfo : true
} ]
} ]
}

回答2:

多到网上查查吧!不要一开口就要代码什么的,介绍个教程给你,里边有你想要的东西。——“ 轻松搞定ExtJs ”教程