I have a PagingToolbar and I have 4 buttons listed. When I click on a certain button, I want all the other buttons to be disabled. I want to set different conditions for when any of the buttons are clicked.
Here is the code of the PagingToolbar that I am working with:
Code:
tbar: new Ext.PagingToolbar({ beforePageText: 'Switch',
items: [{
xtype: 'tbspacer',
width: 20
},{
text: 'Add',
cls: 'x-btn-text-icon',
icon: 'public/images/add.gif'
},{
xtype: 'tbspacer',
width: 20
},{
text: 'Copy',
cls: 'x-btn-text-icon',
icon: 'public/images/add.gif'
},{
xtype: 'tbspacer',
width: 20
},{
text: 'Update',
cls: 'x-btn-text-icon',
icon: 'public/images/edit.gif'
}],
listeners: {
'beforerender': function(){
this.refresh.hide();
}
}
})
Is there an easy way to do this?