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

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

1 Answer 124 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Frank Richardson
Top achievements
Rank 1
Frank Richardson asked on 11 Oct 2010, 09:58 AM
Hi.

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?

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 12 Oct 2010, 11:50 PM
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.

Regards,
Cody
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
Frank Richardson
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or