View Full Version : Add button to toolbar of FormPanel at runtime

24 Feb 2012, 1:55 PM
Can someone help me to add a button on runtime to the toolbar of a FormPanel? So that the new button will be added close the other buttons (e.g. send, cancel) of the form.
As you can see on my attached picture.32124

The predefined buttons have been added as follows to the form:

buttons: [{
text: 'Send'
text: 'Cancel'

Thanks for your help!extjser12

24 Feb 2012, 5:17 PM
Have a try with:

var toolBar = <form>.getDockedItems('toolbar[ui=footer]')[0];
xtype: 'button',
text: 'New button',