PDA

View Full Version : How to set dynamic inputValue and boxlabel for radio button in radio group in extjs4.



vijayakumar84
20 Jun 2013, 6:00 AM
Hi
can anybody tell How to set dynamic inputValue and boxlabel for radio button in radio group in extjs4.1
Thanks

chamacs
20 Jun 2013, 1:59 PM
You could create an 'empty' radio group on the view and in the processing code use the add() function to dynamically create a radio button with its config. Something like:


var group = //get handle on group.
group.add({
xtype : 'radio',
// other attributes
});

If that is not an option, there should be a setter method for most attributes on the component itself:


var radio = // get a handle on radio button component
radio.setBoxLabel('new label');