This question is locked. New answers and comments are not allowed.
Hello,
I have a RadGridView with two important columns. In one column there is a RadNumUpDown control and in the other one a RadComboBox. See below.
Is it possible to enable the RadNumUpdown "cell" only when the SelectedItem != 'x' from the RadComboBox. The prefered way is to do it trough XAML.
The XAML is:
I have a RadGridView with two important columns. In one column there is a RadNumUpDown control and in the other one a RadComboBox. See below.
Is it possible to enable the RadNumUpdown "cell" only when the SelectedItem != 'x' from the RadComboBox. The prefered way is to do it trough XAML.
The XAML is:
<telerik:GridViewDataColumn Header="Value" Width="100" DataMemberBinding="{Binding HourValue, Mode=TwoWay}"> <telerik:GridViewColumn.CellTemplate> <DataTemplate> <telerik:RadNumericUpDown ValueFormat="Numeric" CustomUnit="%" NumberDecimalDigits="2" Value="{Binding Value, Mode=TwoWay}" Minimum="1" Maximum="100" SmallChange="1" IsEnabled="{Binding ElementName=TypeComboBox, Path=SelectedIndex, Mode=OneWay} ????????"/> </DataTemplate> </telerik:GridViewColumn.CellTemplate> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn Header="Type" Width="150"> <telerik:GridViewColumn.CellTemplate> <DataTemplate> <telerik:RadComboBox Name="TypeComboBox" DisplayMemberPath="TypeDescription" SelectedValuePath="TypeId" SelectedValue="{Binding HourType, Mode=TwoWay}" ItemsSource="{Binding CategoryTypes, Source={StaticResource CategoryTypeList}}" /> </DataTemplate> </telerik:GridViewColumn.CellTemplate> </telerik:GridViewDataColumn>