Silverlight RadGridView Rows collection is empty

2 posts, 0 answers
  1. Igor
    Igor avatar
    3 posts
    Member since:
    Oct 2011

    Posted 06 May 2015 Link to this post


    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? 

  2. Boyan Boev
    Boyan Boev avatar
    1072 posts

    Posted 11 May 2015 Link to this post

    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");

    Let me know if this helps.

    Boyan Boev
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top