I have a RadGridView with a column that is RadComboBox:
<telerik:RadGridView x:Name="gridSelectedResources" Style="{StaticResource GridViewSelectedResources}"
BeginningEdit="gridSelectedResources_BeginningEdit"
RowEditEnded="gridSelectedResources_RowEditEnded"
Deleted="gridSelectedResources_Deleted"
EditTriggers="CellClick"
IsReadOnly="{Binding CurrentRole.Editable,Converter={StaticResource ReverseBoolConverter}}">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn.CellEditTemplate>
<DataTemplate>
<telerik:RadComboBox
Style="{StaticResource ComboBoxCellEditStyle}"
Loaded="RadComboBox_Loaded"
SelectionChanged="RadComboBox_SelectionChanged"
DisplayMemberPath="Name"
SelectedValuePath="Id"
SelectedValue="{Binding CS.Id, Mode=TwoWay}"
>
<i:Interaction.Behaviors>
<sharedBehaviors:ShowDescriptionBehavior ComboBoxWithDescriptionTemplate="{StaticResource NonEditableComboBoxWithDescription}"/>
<telerik:RadGridView.Columns>
</i:Interaction.Behaviors>
</telerik:RadComboBox>
</DataTemplate>
</telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
Problem: how from tests select a item from RadComboBox?
I try to Cast, but it doesn't work, I try to FindAllByType<RadComboBox> => count is 0.
Do you have some solutions to solve this problem?
<telerik:RadGridView x:Name="gridSelectedResources" Style="{StaticResource GridViewSelectedResources}"
BeginningEdit="gridSelectedResources_BeginningEdit"
RowEditEnded="gridSelectedResources_RowEditEnded"
Deleted="gridSelectedResources_Deleted"
EditTriggers="CellClick"
IsReadOnly="{Binding CurrentRole.Editable,Converter={StaticResource ReverseBoolConverter}}">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn.CellEditTemplate>
<DataTemplate>
<telerik:RadComboBox
Style="{StaticResource ComboBoxCellEditStyle}"
Loaded="RadComboBox_Loaded"
SelectionChanged="RadComboBox_SelectionChanged"
DisplayMemberPath="Name"
SelectedValuePath="Id"
SelectedValue="{Binding CS.Id, Mode=TwoWay}"
>
<i:Interaction.Behaviors>
<sharedBehaviors:ShowDescriptionBehavior ComboBoxWithDescriptionTemplate="{StaticResource NonEditableComboBoxWithDescription}"/>
<telerik:RadGridView.Columns>
</i:Interaction.Behaviors>
</telerik:RadComboBox>
</DataTemplate>
</telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
Problem: how from tests select a item from RadComboBox?
I try to Cast, but it doesn't work, I try to FindAllByType<RadComboBox> => count is 0.
Do you have some solutions to solve this problem?