3 Answers, 1 is accepted
0
Hello Sreeju,
You can choose from a couple of approaches in order to implement this scenario. You can handle the RadToggleButtons Checked() event to uncheck every other ToglleButton in the group. You can also use the RadToggleButton in an ItemTemplate for a ListBoxItem and bind the IsChecked property to the IsSelected property of the ListBoxItems.
You can also use the RadRadioButton instead of the RadToggleButton since it implements this functionality out-of-the-box.
I prepared a sample project illustrating all of these approaches. I hope it will help you choose the best approach towards your scenario.
Regards,
Tina Stancheva
the Telerik team
You can choose from a couple of approaches in order to implement this scenario. You can handle the RadToggleButtons Checked() event to uncheck every other ToglleButton in the group. You can also use the RadToggleButton in an ItemTemplate for a ListBoxItem and bind the IsChecked property to the IsSelected property of the ListBoxItems.
You can also use the RadRadioButton instead of the RadToggleButton since it implements this functionality out-of-the-box.
I prepared a sample project illustrating all of these approaches. I hope it will help you choose the best approach towards your scenario.
Regards,
Tina Stancheva
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Seth
Top achievements
Rank 1
answered on 28 Mar 2011, 02:23 PM
Tina--
How can I set up 2 separate groups of RadRadioButtons? The selections in one should not affect the selections in the other.
Thanks,
Seth
How can I set up 2 separate groups of RadRadioButtons? The selections in one should not affect the selections in the other.
Thanks,
Seth
0
Hi Seth,
If you define the RadRadioButtons in different panels (StackPanels/Grids), this will automatically defined them in different groups as you need.
Also, you can take advantage of the RadRadioButton GroupName property and set different GroupNames to the buttons in different groups.
I hope this info will help you.
All the best,
Tina Stancheva
the Telerik team
If you define the RadRadioButtons in different panels (StackPanels/Grids), this will automatically defined them in different groups as you need.
Also, you can take advantage of the RadRadioButton GroupName property and set different GroupNames to the buttons in different groups.
I hope this info will help you.
All the best,
Tina Stancheva
the Telerik team