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

How to give id property to each tree item for remote binding tree

1 Answer 47 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rajendar
Top achievements
Rank 1
Rajendar asked on 13 Nov 2014, 10:18 AM
Hi Everyone,

I am checking test-ability of Kendo UI application with CUIT (Coded UI of Microsoft). Whenever I record action on tree item it is recorded with InnerText.

In the attached image you can find that there are two two tree items at different level with same name "logo.png". Now only way that I can differentiate these two items is "TagInstance" which is not reliable.

To make it working consistently I can add "id" property to each tree item. If it is a simple tree view I can directly add with ".HtmlAttributes(new {id = "staticNotification" })" code.

Please let us know how to give ids for each tree item in case of Data Binding. (Local binding, remote binding)

Is there any documentation to provide ids for tree item for each type of tree.

Thanks,
Rajendar

1 Answer, 1 is accepted

Sort by
0
Atanas Georgiev
Telerik team
answered on 13 Nov 2014, 02:16 PM

Hi Rajendar,

I have already answered similar question in the other forum thread: 

http://www.telerik.com/forums/how-to-provide-id-property-to-whole-control 

Regards,
Atanas Georgiev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeView
Asked by
Rajendar
Top achievements
Rank 1
Answers by
Atanas Georgiev
Telerik team
Share this question
or