extjs4 - extjs 4- Radiogroup value -


i don't know how set value of radiobutton group. value 'gp ' or 'p' taken in table 'listsites' .

here's code:

for (i = 0; < me.datasite.length; i++) {             sitename = me.datasite[i].name;// data site table of object site id , name.             idsite = me.datasite[i].id;             type = me.listsites['site' + idsite]; // listsite table contains type of site takes value 'p' or 'gp'             itemsarray.push(                 {                     xtype: 'radiogroup',                     fieldlabel: sitename,                     labelwidth: me.defaultlabelwidth,                     width: '100%',                     border: false,                     defaults: {                         padding: '0 20 0 0',                         xtype: 'radio',                         name: 'listsite' + idsite,                         value: type // here's problem                     },                     layout: 'hbox',                     items: [                         {                             boxlabel: ressources.radiogroupeproduitboxlabel,                             inputvalue: 'gp'                         },                         {                             boxlabel: ressources.radioproduitboxlabel,                             inputvalue: 'p'                         }]                 }             );         } 

i'm french sorry english ^^' thank you


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -