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

[Solved] Browser freezes when GridViews are dynamically added

5 Answers 105 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mikkel Bo
Top achievements
Rank 1
Mikkel Bo asked on 02 Feb 2011, 09:02 AM
Hi,

I'm evaluating the Telerik Silverlight controls to see if they will be useful in our project.

When I try to test a scenario from our existing regular ASP.NET application with the Telerik SL GridView the browser will freeze. And it's not because I'm trying to call a heavy method synchronously.

My scenario is:

The user will enter some search-criterias and the search result will be shown in several dynamically added GridView controls. My problem is that when I set the ItemsSource on the dynamically added GridView, the browser freezes.

I have a custom UserControl containing a GridView, and it is an instance of this control I'm dynamically adding to a stackpanel. If I add the controls static in the XAML it works, so I'm thinking it might have something to do with adding controls on a WCF callback.

I have a small solution illustrating the problem, but I'm only allowed to upload images...??

Thanks in advance.

/Mikkel

PS.: I'm not sure if this is a problem in the Telerik GridView or the problem is the way I'm adding controls dynamically.

5 Answers, 1 is accepted

Sort by
0
Mikkel Bo
Top achievements
Rank 1
answered on 02 Feb 2011, 09:20 AM
For your information I've just tried to replace the Telerik GridView with the standard DataGrid - and it's working without any problems. Strange...

/Mikkel
0
Vlad
Telerik team
answered on 02 Feb 2011, 09:24 AM
Hello,

 Please send us runnable application where we can observe this. 

All the best,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Mikkel Bo
Top achievements
Rank 1
answered on 02 Feb 2011, 09:28 AM
But how? As i mentioned in my first post, I'm only allowed to upload images...
0
Mikkel Bo
Top achievements
Rank 1
answered on 02 Feb 2011, 09:47 AM
Damn damn damn! Nevemind!

I've found the problem. It has nothing to do with the Telerik control!

For some reason if I set the right-margin of the grid to "0" inside my usercontrol it will cause the browser to freeze when it's added dynamically to a stackpanel.

A half day's work wasted on this problem - damn!

I will gladly upload my demo-project, so other users can see the problem - but I still don't know how to do that? :)

/Mikkel
0
Vlad
Telerik team
answered on 02 Feb 2011, 10:13 AM
Hi,

You can upload projects (zips) only in support tickets.

All the best,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Mikkel Bo
Top achievements
Rank 1
Answers by
Mikkel Bo
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or