This is a migrated thread and some comments may be shown as answers.

Get value of RadRadioButton group

1 Answer 114 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Zvi
Top achievements
Rank 1
Zvi asked on 09 Dec 2016, 04:44 AM

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

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 13 Dec 2016, 03:30 PM
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.
Tags
Buttons
Asked by
Zvi
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or