How can I take the value of a query to radioGroup
?
Currently I have defined the radioGroup
in this way:
the value that I store in a table is the one found in inputValue
:
var chkTipoRRT = new Ext.form.RadioGroup({ id: 'chkTipoRRT', width: 400, columns: 4,
items: [
{ name: 'chkTipoRRT', boxLabel: 'Estandar', inputValue: 'Estandar', checked: true },
{ name: 'chkTipoRRT', boxLabel: 'Doc', inputValue: 'Doc' },
{ name: 'chkTipoRRT', boxLabel: 'Plus', inputValue: 'Plus' }]
});
At the moment of consulting the table that contains my value (in this case it is "Plus") I do not know how to assign this value to this same radioGroup and show me the check corresponding to the value. I have this at the moment but it does not work for me:
(result.chkTipoRRT) ? (chkTipoRRT.setValue('plus')) : (chkTipoRRT.setValue('Doc'));