8 Dec 2011 9:24 PM #1
Howto setup title of fieldset from record
I have a Ext.form.Panel with 'fieldset' item inside. I need setup 'title' of this 'fieldset' from panel data record.
Fields inside 'fieldset' setted automaticaly (by name template), but I dont know how to setup 'title' in same way.
9 Dec 2011 6:04 AM #2
Unfortunately there is no way to set a fieldset title in the same wy of loading the form fields by the "setRecord" function.
However, you can achieve that as follow:
Suppose you have a "title" field in your record which should be set as the Title of your fieldset.
At this point you should only get your field set component inside your form and set its title using the "title" record value.
9 Dec 2011 8:55 AM #3
Thanks, it works!