GET THE VALUE OF CHECKED RADIO BUTTON IN SENCHA TOUCH.

Aaron Douglas

Total Post:20

Points:140
Posted by  Aaron Douglas
 4308  View(s)
Ratings:
Rate this:
Hi Expert,

How to get the value of checked radio button in Sencha Touch.

Thanks in advance for any recommendations or solutions.
  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: get the value of checked radio button in Sencha Touch.

    Hi Aaron,


    To get the value of checked radio button in sencha touch, first add a groupValue to the radio button and then get the group value through the getGroupValue() method, like this:

            var centre = Ext.ComponentQuery.query('radiofield[name=Centre]');

            Ext.Msg.alert('Selected Centre', centre[0].getGroupValue());


    If you want to learn more about radio button, then you can read my article:

    http://www.mindstick.com/Articles/56bc0549-243a-40f9-83d4-63161fe68e38/?Radio%20Button%20in%20Sencha%20Touch

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!