Results 1 to 4 of 4

Thread: Radiobutton how make checked?

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2012
    Location
    Estonia
    Posts
    198
    Answers
    2
    Vote Rating
    1
      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
    Answers
    347
    Vote Rating
    114
      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,790
    Answers
    583
    Vote Rating
    390
      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
    Answers
    2
    Vote Rating
    1
      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 .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •