Hi,
I am facing an Issue with binding in RadGrid. Here is my XAML
<telerik:GridViewDataColumn Width="Auto" DataMemberBinding="{Binding IsTermChange}" Header="Change Term" x:Name="TermChange">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsTermChanged, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Width="Auto" DataMemberBinding="{Binding IsActive}" Header="Change Mileage">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsActive, Mode=TwoWay}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Width="Auto" DataMemberBinding="{Binding IsActive}" Header="Add Option">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<Grid>
<CheckBox Name="optionCheckBox"/>
</Grid>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Width="Auto" DataMemberBinding="{Binding IsActive}" Header="Add Maint.">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsActive, Mode=TwoWay}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Width="Auto" DataMemberBinding="{Binding IsActive}" Header="Remove Maint.">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsActive, Mode=TwoWay}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
<telerik:GridViewColumn Header="Proposed Term" >
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<telerik:RadComboBox Width="80" HorizontalAlignment="Left" Margin="3,1,0,0" Text="{Binding Path=TermRequested, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" IsEditable="True" ItemsSource="{Binding AvailableTermsList}" StaysOpenOnEdit="True" />
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>
I want to bind the IsEnabled property of radcombobox (bold one) only when IsChecked property is true for checkbox(bold one). I am not abble to achieve that. Please help it is urgent.
I am facing an Issue with binding in RadGrid. Here is my XAML
<telerik:GridViewDataColumn Width="Auto" DataMemberBinding="{Binding IsTermChange}" Header="Change Term" x:Name="TermChange">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsTermChanged, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Width="Auto" DataMemberBinding="{Binding IsActive}" Header="Change Mileage">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsActive, Mode=TwoWay}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Width="Auto" DataMemberBinding="{Binding IsActive}" Header="Add Option">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<Grid>
<CheckBox Name="optionCheckBox"/>
</Grid>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Width="Auto" DataMemberBinding="{Binding IsActive}" Header="Add Maint.">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsActive, Mode=TwoWay}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Width="Auto" DataMemberBinding="{Binding IsActive}" Header="Remove Maint.">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsActive, Mode=TwoWay}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
<telerik:GridViewColumn Header="Proposed Term" >
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<telerik:RadComboBox Width="80" HorizontalAlignment="Left" Margin="3,1,0,0" Text="{Binding Path=TermRequested, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" IsEditable="True" ItemsSource="{Binding AvailableTermsList}" StaysOpenOnEdit="True" />
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>
I want to bind the IsEnabled property of radcombobox (bold one) only when IsChecked property is true for checkbox(bold one). I am not abble to achieve that. Please help it is urgent.