我有以下分组报头格:EXTJS 4分组的列标题的动态文本修改
var lestore = Ext.create('Ext.data.Store', {
proxy: {
type: 'memory'
},
autoDestroy: true,
data:objstore
});
thegrid = Ext.create('Ext.grid.Panel', {
store: lestore,
columnLines: true,
columns: [{text:'date'},{text:'TV',columns:{text:'400',columns:[{text:'tt1'},{text:'tt2'}]}] ,
title:'my title' ,
selModel: {
selType: 'cellmodel'
},
renderTo: 'gridmpoff',
plugins: [Ext.create('Ext.grid.plugin.CellEditing', {clicksToEdit: 1}
)
],
listeners: {'edit': function(editor,e) {updtitle(editor,e);}
},
viewConfig: {
stripeRows: true
},
});
我所需要的网格创建之后改变列文本(TT1,TT2等),在不改变报头分组。
我试着修改列属性,但这并没有帮助,只有那些迄今为止工作的东西是重新配置与编辑器混淆。
请指点
setText在分组标题中不存在(这很有意义,因为标题有很多级别,而且不能设置“列”文本) – Gar