Hello,
I'm currently use TTF for a silverlight application using Telerik UI !
How select an item in a RadGridView Cell containing a combo box with TTF automation ?
I can browse the ragGridview using this kind of code in the testing method :
RadGridView rgvbt = app.Find.ByName<
RadGridView
>("GridViewSelection");
rgvbt.Rows.First().Cells.First().User.TypeText(briqueTemplateAdd, 100);
rgvbt.Rows.First().Cells.Skip(1).First().User.Click();
but i don't know how select an item in the comboBox cell ?
Here is the xaml for the grid view portion containing the combo box :
<
telerik:GridViewComboBoxColumn
Width
=
"*"
Header
=
"{Binding General.Format, Source={StaticResource ESBResources}}"
ItemsSourceBinding
=
"{Binding TemplatesVM.BriquesElementaires, Source={StaticResource Locator}}"
DataMemberBinding
=
"{Binding BriqueElementaire,Mode=TwoWay}"
IsComboBoxEditable
=
"False"
HeaderTextAlignment
=
"Center"
>
<
telerik:GridViewComboBoxColumn.CellTemplate
>
<
DataTemplate
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
Image
Source
=
"{Binding BriqueElementaire.Image}"
Width
=
"20"
Grid.Column
=
"0"
/>
<
TextBlock
Text
=
"{Binding BriqueElementaire.Format.Label}"
Margin
=
"10,0,0,0"
Grid.Column
=
"1"
/>
<
Image
Source
=
"{Binding Images.Defilementbas, Source={StaticResource ESBResources}}"
Width
=
"10"
Grid.Column
=
"2"
Margin
=
"0,0,5,0"
/>
</
Grid
>
</
DataTemplate
>
</
telerik:GridViewComboBoxColumn.CellTemplate
>
<
telerik:GridViewComboBoxColumn.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"{Binding Image}"
Width
=
"20"
/>
<
TextBlock
Text
=
"{Binding Format.Label}"
Margin
=
"10,0,0,0"
/>
</
StackPanel
>
</
DataTemplate
>
</
telerik:GridViewComboBoxColumn.ItemTemplate
>
</
telerik:GridViewComboBoxColumn
>
is there somewhere a portion of code to see how select an item in a GridViewComboBoxColumn with TTF automation ?