This question is locked. New answers and comments are not allowed.
Hi,
Following code falls over everytime a selected item is changed in the combobox. The error is "Value does not fall with in expected range"
I found a work around to this. I replaced DataMemberBinding with a cell template and now it is working properly. However, I lost the auto sort and filter option.
I would like to understand why it was not working in the first case.
Thanks
Deven
Following code falls over everytime a selected item is changed in the combobox. The error is "Value does not fall with in expected range"
| <telerikGrid:GridViewDataColumn |
| Header="Test Type" DataMemberBinding="{Binding TestType}"> |
| </telerikGrid:GridViewDataColumn.CellTemplate> |
| <telerikGrid:GridViewDataColumn.CellEditTemplate> |
| <DataTemplate> |
| <telerikInput:RadComboBox |
| HorizontalAlignment="Stretch" Margin="2" |
| Style="{StaticResource TelerikComboBoxStyle}" |
| IsEditable="True" |
| telerik:TextSearch.TextPath="Desc" |
| ItemsSource="{Binding TestTypeCollection}" |
| SelectedItem="{Binding TestType, Mode=TwoWay}" /> |
| </DataTemplate> |
| </telerikGrid:GridViewDataColumn.CellEditTemplate> |
| </telerikGrid:GridViewDataColumn> |
I found a work around to this. I replaced DataMemberBinding with a cell template and now it is working properly. However, I lost the auto sort and filter option.
| <telerikGrid:GridViewDataColumn |
| Header="Test Type" > |
| <telerikGrid:GridViewDataColumn.CellTemplate> |
| <DataTemplate> |
| <Grid> |
| <TextBlock Text="{Binding TestType}" /> |
| </Grid> |
| </DataTemplate> |
| </telerikGrid:GridViewDataColumn.CellTemplate> |
| <telerikGrid:GridViewDataColumn.CellEditTemplate> |
| <DataTemplate> |
| <telerikInput:RadComboBox |
| HorizontalAlignment="Stretch" Margin="2" |
| Style="{StaticResource TelerikComboBoxStyle}" |
| IsEditable="True" |
| telerik:TextSearch.TextPath="Desc" |
| ItemsSource="{Binding TestTypeCollection}" |
| SelectedItem="{Binding TestType, Mode=TwoWay}" /> |
| </DataTemplate> |
| </telerikGrid:GridViewDataColumn.CellEditTemplate> |
| </telerikGrid:GridViewDataColumn> |
I would like to understand why it was not working in the first case.
Thanks
Deven