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

How to click the Drill down

4 Answers 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kiran
Top achievements
Rank 2
Kiran asked on 23 Jul 2010, 12:14 PM
Hi,

I am using WebAii 2.0 for silverlight 3 automation.

I need to click the Plus(+) sign in the RadGridView. Please see the attached image for reference.
Actually what is that Plus(+) sign control. Is it an image or anything else?

Is it possible through Translator? Any way i want the other way.

Thanks
Kiran

4 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 23 Jul 2010, 01:08 PM
Hello Kiran,

RadGridView peer has Rows property gives access to all rows displayed by the grid. All rows have Expande/Collapse method which will expand or collapse the respective row if this row is a hierarchy one.


Greetings,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kiran
Top achievements
Rank 2
answered on 23 Jul 2010, 03:34 PM
Hi Milan,

Thanks for your quick reply.
The code you provided is working.

But i need to find that element and click. I tried below buts its not working.
I need to know what is that Plus sign. Is it a TextBlock or Image or anyother control so that i can get that through Find.
FrameworkElement grid = base.Find.AllByType("RadGridView").FirstOrDefault(s => s.Name == "ProjectDocketsGrid");
            grid.Refresh();
            IList<FrameworkElement> rows = grid.Find.AllByType("GridViewRow");
  
            IList<TextBlock> textBlocks = grid.Find.AllByText("+");
            textBlocks = rows.FirstOrDefault().Find.AllByText("+");

Thanks
Kiran
0
Accepted
Missing User
answered on 26 Jul 2010, 08:00 PM
Hello Kiran,

You can try something like:

IList <GridViewRow> l = ActiveBrowser.SilverlightApps()[0].Find.AllByType<GridViewRow>();
l[2].Cells[0].User.Click(MouseClickType.LeftClick);

Hope that helps.

Greetings,
Nelson Sin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kiran
Top achievements
Rank 2
answered on 27 Jul 2010, 07:41 AM
Hi Nelson,

Wowww.... It's a great solution. It may help me in many other places too.
Also i have identified what is that control after spending some time. Its actually GridViewToggleButton
We can do that in below way also

 

FrameworkElement toggleButton= ProjectDocketsGrid.Rows[projectDocketsGridRowNumber].Find.ByType("GridViewToggleButton");

 

toggleButton.User.Click();

 



Thanks
Kiran
Tags
General Discussions
Asked by
Kiran
Top achievements
Rank 2
Answers by
Milan
Telerik team
Kiran
Top achievements
Rank 2
Missing User
Share this question
or