Select item in GridViewComboBoxColumn

2 posts, 0 answers
  1. pat
    pat avatar
    3 posts
    Member since:
    Jun 2016

    Posted 20 Aug 2017 Link to this post


    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);

    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"
        <DataTemplate >
            <Grid >
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                <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"/>
        <DataTemplate >
            <StackPanel Orientation="Horizontal">
                <Image Source="{Binding Image}" Width="20"/>
                <TextBlock Text="{Binding Format.Label}" Margin="10,0,0,0"/>


    is there somewhere a portion of code to see how select an item in a GridViewComboBoxColumn with TTF automation ?

  2. Nikolay Petrov
    Nikolay Petrov avatar
    308 posts

    Posted 23 Aug 2017 Link to this post

    Hello Pat,

    Please refer to this article that could provide an approach to this problem. I hope this would help.

    Kind Regards,
    Nikolay Petrov
    Progress Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top