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

2 posts, 0 answers
  1. Rajendar
    Rajendar avatar
    69 posts
    Member since:
    Jun 2013

    Posted 05 Mar 2015 Link to this post

    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.


  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 05 Mar 2015 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top