emilianm
21 Aug 2011, 10:54 PM
It seems that we encountered a issue with RadioGroup(/Radio) components.
When you design a form you can put any kind of fields and on a later time you can use form.loadRecord(Ext.data.Model record) to populate the entire form.
This works as expected, excepting the RadiGroup component. If you would like to display the selected Radio when the loadRecord is called with the appropriate values you will discovered that this is not working. You have to relay on the checked property of the Radio component, and to set this manually. This implies an additional asynchronous action after your initial model was loaded.
If you decide to "render" the data associated with the radioGroup with a different ExtJs 4 component, for example with a plain textfield or with a combobox, everything will work fine after you call form.loadRecord(Ext.data.Model record) and you will have you data directly pre-selected on the screen .
If you have any solution for this or any comments please do not hesitate to reply.
Thanks!
When you design a form you can put any kind of fields and on a later time you can use form.loadRecord(Ext.data.Model record) to populate the entire form.
This works as expected, excepting the RadiGroup component. If you would like to display the selected Radio when the loadRecord is called with the appropriate values you will discovered that this is not working. You have to relay on the checked property of the Radio component, and to set this manually. This implies an additional asynchronous action after your initial model was loaded.
If you decide to "render" the data associated with the radioGroup with a different ExtJs 4 component, for example with a plain textfield or with a combobox, everything will work fine after you call form.loadRecord(Ext.data.Model record) and you will have you data directly pre-selected on the screen .
If you have any solution for this or any comments please do not hesitate to reply.
Thanks!