Eu estou com um problema que é não sei como é que consigo colocar um radio button checked através do resultado que recebo do JsonReader.
Alguém tem conhecimento de uma maneira ?
Meu Codigo
Código :
...
reader: new Ext.data.JsonReader( {
root : 'date',
successProperty: 'success'
},
['profile_name','language'],
),
items:[
{
xtype : 'textfield',
fieldLabel : __('Name'),
name : 'profile_name',
id : 'profile_name',
allowBlank : false,
anchor : '100%',
enableKeyEvents : true
},
{
xtype: "radiogroup",
fieldLabel: __("Language"),
width: '300',
name : 'language',
id: "language",
defaults: {xtype: "radio",name: "Languages",height:'40'},
items: [
{
boxLabel: "FR",
inputValue: 1
},
{
boxLabel: "EN",
nputValue: 2,
}
]
},
...
reader: new Ext.data.JsonReader( {
root : 'date',
successProperty: 'success'
},
['profile_name','language'],
),
items:[
{
xtype : 'textfield',
fieldLabel : __('Name'),
name : 'profile_name',
id : 'profile_name',
allowBlank : false,
anchor : '100%',
enableKeyEvents : true
},
{
xtype: "radiogroup",
fieldLabel: __("Language"),
width: '300',
name : 'language',
id: "language",
defaults: {xtype: "radio",name: "Languages",height:'40'},
items: [
{
boxLabel: "FR",
inputValue: 1
},
{
boxLabel: "EN",
nputValue: 2,
}
]
},
...
Obrigado