Find a element in Radgridview with pages

4 posts, 0 answers
  1. Natasha
    Natasha avatar
    21 posts
    Member since:
    Jun 2011

    Posted 15 Dec 2011 Link to this post

    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.
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 16 Dec 2011 Link to this post

    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
  3. Natasha
    Natasha avatar
    21 posts
    Member since:
    Jun 2011

    Posted 16 Dec 2011 Link to this post

    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.
  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 19 Dec 2011 Link to this post

    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
Back to Top