既存のツリーを再構成したい。列は更新されますが、ストア/データは更新されません。
handler: function() {
var newStore = Ext.create('Ext.data.TreeStore', {
fields: [ 'C4', 'C5', 'C6' ],
root: {
text: '.',
children: [
{ 'C4': 4, 'C5': 5, 'C6': 6 },
{ 'C4': 4, 'C5': 5, 'C6': 6 },
{ 'C4': 4, 'C5': 5, 'C6': 6 },
{ 'C4': 4, 'C5': 5, 'C6': 6 }
]
}
});
var newCols = [
{ text: 'C4', dataIndex: 'C4' },
{ text: 'C5', dataIndex: 'C4' },
{ text: 'C6', dataIndex: 'C4' }
];
tree.reconfigure(newStore, newCols);
}
助言がありますか?