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

Find a element in Radgridview with pages

3 Answers 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Natasha
Top achievements
Rank 1
Natasha asked on 15 Dec 2011, 01:10 PM
Hello,
I need to find a element in radgridview, but I don't know the page of the element.
My radgridview have 2 columns (Name, Description). I want search by Name.
I tried use the method Find.ByTextContent (GrdResultsGenericRadgridview.Find.ByTextContent("Value");)
I hope someone can help.
Best Regards.

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 16 Dec 2011, 01:17 PM
Hello Natasha,

I'm not sure I understand completely your scenario, but here is a sample code against this Telerik demo site.
SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
RadGridView GrdResultsGenericRadgridview = app.Find.ByName<RadGridView>("RadGridView1");
FrameworkElement fe = GrdResultsGenericRadgridview.Find.ByTextContent("Argentina");
fe.User.Click();
With this code I'm getting the element by its text content(Argentina) without using Pages.

You can see how it works here:
http://screencast.com/t/XKrocrACS .

Hope this helps!
 
Best wishes,
Plamen
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
Natasha
Top achievements
Rank 1
answered on 16 Dec 2011, 03:07 PM
I think you didn't understand, my example is similar this http://blogs.telerik.com/Libraries/MetaBlogLib/WindowsLiveWriter-PagingwithRadGridViewforSilverlightWPF_E6F7-RadDataPager_2.sflb but in Silverlight.
I need find object, It can be located in page 1 or page 2...... last page. I don't have way to forecast this.
My data are load on demand.
0
Plamen
Telerik team
answered on 19 Dec 2011, 05:55 PM
Hello Natasha,

I decided to create an article on your use case, because I believe that finding elements in a Silverlight RadGridView is a common automation task. You can find it in our Code Samples section here.

If you need further assistance on this, please let me know.

Best wishes,
Plamen
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
Tags
General Discussions
Asked by
Natasha
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Natasha
Top achievements
Rank 1
Share this question
or