How to read a Rad Tree control in a silverlight application

Ask general questions here.
rekha1234
Posts: 6
Joined: Fri Jul 22, 2011 8:12 pm

How to read a Rad Tree control in a silverlight application

Post by rekha1234 » Mon Aug 01, 2011 7:48 am

Hello,

I need to automate reading a tree control in a silver light application. Here is the scenario.

I have couple of items in the tree control with a check box for each item and a hyperlink.I need to verify that when ever i click on the hyperlink of the tree item, only respective tree item should be checked and all the other items in the tree shoulbe unchecked.(note that each tree item may have children and i need to verify that all the children of the tree items are also unchecked). Please find that attached snapshot of the Tree. Also, i have attached a screen shot of the Tree with Checkboxes and hyperlinks.Can someone help me in this?
Attachments
Screenshot.png
Screen shot for Tree
Screenshot.png (22.21 KiB) Viewed 698 times
EvidenceExplr.rxsnp
Snapshot for Tree
(561.34 KiB) Downloaded 165 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How to read a Rad Tree control in a silverlight application

Post by Support Team » Tue Aug 02, 2011 10:12 am

Hi,
rekha1234 wrote:Can someone help me in this?
I would suggest you to write a recursive method which check your tree items and check if only the one is checked which you expect.
Please take a look to following tutorial for the basics of recursive method
http://www.dotnetperls.com/recursion

Regards,
Peter
Ranorex Team
.
Image