Thank you for contacting us.
Indeed, on recording we identify the TextBlock by its content so the element find expression relies on the content. To resolve this issue you can instead get the parent footer cell which is static for the GridView and use our coded find element API in Silverlight to get the TextBlock in interest and then obtain its value. To find what to look for and decide on the exact element search approach, I suggest you load the element in the Visual Tree Explorer during recording so that you can get the exact visual tree to look at.
I've attached a capture of the visual tree of the GridViewFooterCell expanded to the TextBlock you are after. If I'm correct in my assumption the following code snippet should get to that TextBlock:
TextBlock textBlock = cell.Find.ByType("AggregateResultsList").Find.AllByType<
You can read more about the finding elements API in Silverlight in our documentation article here
. Should you have further questions please do not hesitate to contact us again.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>