Get value of RadRadioButton group

2 posts, 0 answers
  1. Zvi
    Zvi avatar
    6 posts
    Member since:
    Sep 2014

    Posted 08 Dec 2016 Link to this post

    Hello,

    How can I get the value of a group of RadioButtons ?

    How can I set the default value of each group ?

     

    The following code for example contains 2 groups:

    <StackPanel>

          <telerik:RadRadioButton Content="Item 1.1" />

         <telerik:RadRadioButton Content="Item 1.2" />

    </StackPanel>

    <StackPanel>

         <telerik:RadRadioButton Content="Item 2.1" />

         <telerik:RadRadioButton Content="Item 2.2" />

    </StackPanel>

     

    Thank you,
    Z.V

  2. Dinko
    Admin
    Dinko avatar
    257 posts

    Posted 13 Dec 2016 Link to this post

    Hi Zvi,

    We are not exactly sure what you are trying to achieve in your application. We are guessing that you want to change or get the Content property of the RadRadioButtons in each group. If this is the case there are different ways to do that. Basically, it is depending on the scenario. One way is to get all RadRadioButtons in code behind, sort them by GroupName property and change its Content property depending on some condition. In order to better understand you and provide you a possible solution can you elaborate more on your approach.

    Regards,
    Dinko
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top