Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
Uncheck radio button inside grid on click of button
posted

I am using xamDataGrid which has radio button column as control template. OnCheck on radio button column it gets checked. I have a button. I want to clear the radio button checked before on click of the button

 

 

 

 

 

 

 

 

 

 

 

 

 

<

 

 

igDP:XamDataGrid.Resources>

 

 

 

 

<!-- This Style puts a Radio button into the record selectors. -->

 

 

 

 

<Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key="RadioButtonCheckedStyle">

 

 

 

 

<Setter Property="HorizontalContentAlignment" Value="Center" />

 

 

 

 

<Setter Property="VerticalContentAlignment" Value="Center" />

 

 

 

 

<Setter Property="Template">

 

 

 

 

<Setter.Value>

 

 

 

 

<ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">

 

 

 

 

<RadioButton x:Name="rbselector" GroupName="Test" Checked

="rbselector_Checked"/>

 

 

 

 

</ControlTemplate>

 

 

 

 

</Setter.Value>

 

 

 

 

</Setter>

 

 

 

 

</Style></igDP:XamDataGrid.Resources>

//Field setting in XAMDataGrid//

 

 

 

 

 

 

 

<

 

 

igDP:XamDataGrid.FieldLayouts>

 

 

 

 

<igDP:FieldLayout>

 

 

 

 

<igDP:FieldLayout.Fields>

 

 

 

 

<igDP:UnboundField Name="UB1" Label="Select" DataType="{x:Type RadioButton

}" ><igDP:Field.Settings>

 

 

 

 

<igDP:FieldSettings CellValuePresenterStyle="{StaticResource RadioButtonCheckedStyle}" AllowEdit="True" />

 

 

 

 

</igDP:Field.Settings>

 

 

 

 

</igDP:UnboundField>

I tried binding the radio button IsChecked property to a boolean property and changing the value to false on Button click event. But still the radio button is checked.

Please suggest how to uncheck the radio button on click of other button.