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

Silverlight RadGridView Rows collection is empty

1 Answer 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 1
Igor asked on 06 May 2015, 06:42 PM

Hi, 

I work in Visual Studio, code first type development. Application under the test is Silverlight app. in browser.  

On a page I have a grid. I get instance of the grid using code like:

 var temp = Get<Telerik.WebAii.Controls.Xaml.RadGridView>("Name=MyGridName", "XamlTag=bradgridview");

The question is - when I look "temp" all collections (GroupHeadersRows,Rows , etc. ) always empty? 

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 11 May 2015, 07:58 AM
Hi Igor,

You should first find the Silverlight application and then locate the grid. Here is an example code:

SilverlightApp sapp = manager.ActiveBrowser.SilverlightApps()[0];
RadGridView temp = sapp.Find.ByName<RadGridView>("MyGridName");
temp.Refresh();

Let me know if this helps.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Igor
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or