1. #1
    Sencha Premium Member
    Join Date
    Aug 2012
    Location
    Estonia
    Posts
    198
    Vote Rating
    1
    Answers
    2
    mmuruev is on a distinguished road

      0  

    Default Unanswered: Radiobutton how make checked?

    I know that property checked exist, but how I can select/unselect from a function? Which method I should use?

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Vote Rating
    112
    Answers
    347
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default

    You can use <radio>.setRawValue(Boolean). See it more at http://docs.sencha.com/ext-js/4-1/#!...od-setRawValue

  3. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,786
    Vote Rating
    378
    Answers
    581
    skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute

      1  

    Default

    For a single radio button just call:

    Code:
    radio.setValue(true);
    If you're using a radiogroup then you could use the setValue method on there instead.

  4. #4
    Sencha Premium Member
    Join Date
    Aug 2012
    Location
    Estonia
    Posts
    198
    Vote Rating
    1
    Answers
    2
    mmuruev is on a distinguished road

      0  

    Default

    Thanks a lot it helps. Another question appear I use multiselect and radio on one field. Problem is that if I do that multiselect not show me values that already selected. If I use different fields for radio and multiselect everything OK except I have to chose in radiobuttons positions if multiselect have values. How better do that? In first way with shared field or just control .

Thread Participants: 2