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

Checkbox can not binding IsEnabled from Button

0 Answers 219 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ipOPza
Top achievements
Rank 2
ipOPza asked on 03 Apr 2012, 02:07 PM
XAML
<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.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
ipOPza
Top achievements
Rank 2
Share this question
or