PDA

View Full Version : Ext.Toolbar save/restore button state while enable/disable



yroman
10 Feb 2010, 4:30 AM
Hi,

I have a complex component with a toolbar and several toolbar buttons. For some cases I need to disable toolbar buttons to prevent toolbar related operations while e.g. server request is being performed and then restore toolbar state i.e. restore each button disabled/enabled state. Disabling and reenabling each button seems to be not a perfect solution. I tried to disable the toolbar itself and then enable it but all buttons become enabled after the toolbar enable method invocation. So what is the best way to implement disabled/enabled button state store/restore functionality?

Via plugin, Ext.Toolbar extending or there exists a better solution?

Thank you!