Hi,
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.
Printable View
Hi,
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.
Hi kostysh.
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.
Hope this helps.Code:myForm.getComponent('myFieldset').setTitle(record.get('title'));
Thanks, it works!