1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    15
    Vote Rating
    0
    alexworden is on a distinguished road

      0  

    Question RadioGroup listener - how can I determine which Radio button was selected?

    RadioGroup listener - how can I determine which Radio button was selected?


    Hi,

    I've searched the docs and the forums but can't figure this one out. Can someone provide an example of how I can retrieve the fieldname of the selected radio button from a RadioGroup. Here's my code so far:

    radioGroup.addListener(Events.Change, new Listener<FieldEvent>() {
    @Override
    public void handleEvent(FieldEvent fe) {
    if (((Boolean)fe.getValue()) == true) {
    // How do I determine which radio button was selected?
    }
    }
    });
    Thanks!

    Alex

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    radioGroup.getValue() will return you the currently selected radio.

Similar Threads

  1. Replies: 4
    Last Post: 29 Mar 2010, 4:28 PM
  2. Getting the value of a selected radio button
    By dana.lees in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 16 Aug 2009, 4:00 AM
  3. Get selected radio in a radiogroup
    By wgpubs in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 1 Jun 2009, 2:01 PM
  4. Help Request Accessing Value of Selected Radio Button in RadioGroup
    By mt404 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 6 Jan 2009, 6:13 AM
  5. Dynamically change the selected Radio in RadioGroup
    By masterchris_99 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 29 Sep 2008, 4:01 AM

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar