This is a migrated thread and some comments may be shown as answers.

How to provide unique Automation Id's for cells or Rows inside radTreeListView

1 Answer 500 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Rajendar
Top achievements
Rank 1
Rajendar asked on 05 Mar 2015, 07:06 AM
Hi Everyone,

I want automate RadTreeListView control using Coded UI. How can I provide unique Automation Id's to Rows and Cell to identify controls uniquely

Source:
===================
  <Grid x:Name="LayoutRoot" >
        <telerik:RadTreeListView x:Name="radTreeListView"
                            AutoGenerateColumns="False" ShowColumnHeaders="False">
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}" />
            </telerik:RadTreeListView.ChildTableDefinitions>
            <telerik:RadTreeListView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" AutomationProperties.Name="{Binding Name}"  AutomationProperties.AutomationId="{Binding Name}"/>               
            </telerik:RadTreeListView.Columns>
        </telerik:RadTreeListView>
    </Grid>
===============================

But in code I am binding AutomationProperties.Name to some value but whenever I test control with CUIT AutomationId not coming which I have binded value

Regards,
Rajendar.


1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 05 Mar 2015, 07:44 AM
Hello Rajendar,

I just replied to the forum thread you participated in. 

Regards,
Maya
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeListView
Asked by
Rajendar
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or