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

Verifying a grid loaded

1 Answer 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mark edinger
Top achievements
Rank 1
mark edinger asked on 12 May 2010, 07:30 PM
I created the little helper function below to confirm that a SL4 datagrid loads.  Im getting inconsistent results attempting to run this function on the same grid.  Basically sometimes it works sometimes not.  Is there issues in the framework around this?  Also if i actual break in vs2010 after the 'g' variable is set, and then try to put "?g" into the immediate window IE8 bombs.

Any thoughts?


        public static void VerifyGridLoaded(SilverlightApp app, string gridName)
        {

            DataGrid g = app.FindName<DataGrid>(gridName);
            g.Refresh();
            Assert.IsTrue(g.Rows.Count() > 0, gridName + " is empty.");
        }

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 12 May 2010, 10:45 PM
Hi mark,

There have been a few reports of issues with dynamic row creation or deletion.

Is your test code automating a sequence anything like that or somehow triggering the dynamic creation/load of the entire grid? Or is this testing just when the grid loads on page load? 

And is your app available online publicly? I've tried testing this against a Telerik SL grid, but have had some problems reliably replicating this.

Kind regards,
Nelson Sin
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
mark edinger
Top achievements
Rank 1
Answers by
Missing User
Share this question
or