Hi,
Here's a part of my code
Code:
Ext.apply(this, {
items: [{
xtype: 'treepanel',
width: 600,
height: 'auto',
frame: true,
title: 'Radio Access Network items',
autoScroll: true,
rootVisible: false,
store: this.storeMaintenanceRan,
selModel: 'rowmodel',
columns: [{
xtype: 'treecolumn',
text: 'Name',
flex: 2,
sortable: false,
dataIndex: 'name'
}, {
text: 'Type',
flex: 1,
dataIndex: 'type',
sortable: false,
renderer: this.dummyRenderer
}, {
text: 'Status',
flex: 1,
dataIndex: 'status',
sortable: false
}, {
xtype: 'widgetcolumn',
flex: 1,
widget: {
xtype: 'button',
text: 'Action',
scope: this,
handler: 'onActionClick'
},
}],
listeners: {
select: function (record, index, eOpts) {
console.log("select");
},
itemexpand: function () {
console.log("expand");
},
itemcollapse: function () {
console.log("collapse");
},
}
},
]
});
What I need to do is to be able to change the text if the widget button, according to my store.
How can I have access to the button context before rendering so that I can modify the text to display ?
Thanks in advance.