WebAii & RadGridView: How do I find cells not in visual tree?

2 posts, 0 answers
  1. Frank Richardson
    Frank Richardson avatar
    2 posts
    Member since:
    Apr 2010

    Posted 11 Oct 2010 Link to this post


    I am using WebAii to automate the testing of a Silverlight web app.

    I have a RadGridView; in this grid there are 10 cells, but only 6 cells are visible to the client due to the size of the columns.  You need to use the scroll-bar to view the remaining 4 cells.

    With WebAii, I can only find the 6 cells that are in the visual tree, and since Telerik grids use cell recycling, WebAii is not aware that there are another 4 cells in the grid.

    How can I access these remaining 4 cells?

  2. Cody
    Cody avatar
    3354 posts

    Posted 12 Oct 2010 Link to this post

    Hi Frank Richardson,

    What you describe is a common Silverlight VisualTree problem. It isn't just the Telerik RadGridView control that exhibits this behavior. Pretty much any Silverlight based control that can have lots of data behind it will exhibit this behavior. It's the nature of Microsoft's Silverlight engine and how they choose to render the VisualTree.

    Currently the only way to access those other rows you're after is to actually scroll the tree so that they become visible and then read them.

    When we can find a better solution, we'll post it in a blog post.

    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