PDA

View Full Version : problem with button.setText()



kaps77
30 Aug 2007, 6:20 AM
Am showing a LayoutDialog on click of two different buttons in the toolbar. The dialog contains a button whose label depends on the source button clicked in the toolbar. So I dynamically change the label using

dialog.buttons[0].setText('Save')
This works fine for first time but when I open the dialog again and tries to set the Text I receive following error


TypeError: this.el.child("td.x-btn-center-button.x-btn-text") has no properties
Am I doing something wrong here?
Thanks,
Kapil