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

Need to Bind data for Tree Table in Popupwindow

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Murugappan
Top achievements
Rank 1
Murugappan asked on 16 Feb 2012, 01:31 PM
Hi Team,

Mine is web application -- i have scenario-- where it will direct user to popoup window by clicking lookup icon in the mainpage.
in popup window-- i need to choose value which is tree table -- refer application image.
by double clicking the text the the child node can be selected.  --- now i need bind the data from global data source.

i don't how to bind the data for tree table mouse click event.

i try to find the text from the tree table but i couldn't
please refer the dom image which i attached, and also refer ui1 image.

do the need full
thanks,
Bharathi Muruhappan.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 21 Feb 2012, 12:55 PM
Hello Murugappan,

If I understand correctly your scenario, you want to find a node from the tree table using an external data source and double-click on that node to expand.

First, you need to Bind the test to an external data source. Then you can use the following code to find the node by its TextContent based on a value from the data source.
//Find the tree table
HtmlTable table = Find.ByAttributes<HtmlTable>("class=treeTable");
 
//Find the node using an external data source  
HtmlControl node = table.Find.ByContent<HtmlControl>(Data["Col1"].ToString());
 
//Verify that the node is found
Assert.IsNotNull(node);
 
// Double-click on the node
node.MouseClick(MouseClickType.LeftDoubleClick);

Let me know if you need further assistance on this.

Kind regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Murugappan
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or