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.
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.