XAML
I would like to get IsEnabled from Button to set property of Checkbox in Radgridview but when i use code above it not working
please help.
<StackPanel Orientation="Horizontal" Grid.Row="1" Margin="10" HorizontalAlignment="Center"> <telerik:RadButton x:Name="btStartLog" Content="{Binding startStopbuttonText}" IsEnabled="{Binding isEnableTextBox}" Command="{Binding startStopLogConfigCommand}" Margin="10" Width="150" Height="40" /> </StackPanel><telerik:RadGridView x:Name="RadGridView1"> <telerik:GridViewDataColumn Header="To File"> <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> <CheckBox HorizontalAlignment="Left" VerticalAlignment="Center" IsChecked="{Binding IsOnFile}" /> </DataTemplate> </telerik:GridViewDataColumn.CellTemplate> <telerik:GridViewColumn.CellStyle> <Style TargetType="telerik:GridViewCell"> <Setter Property="IsEnabled" Value="{Binding ElementName=btStartLog, Path=IsEnabled}" /> </Style> </telerik:GridViewColumn.CellStyle> </telerik:GridViewDataColumn></telerik:RadGridView>I would like to get IsEnabled from Button to set property of Checkbox in Radgridview but when i use code above it not working
please help.