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

user control takes a long time to load on edit

3 Answers 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joe Kalinowski
Top achievements
Rank 1
Joe Kalinowski asked on 26 Apr 2010, 05:52 PM
I have a RadGrid that groups by three columns on load defined by GridGroupByExpressions. EditMode is PopUp and EditFormType is WebUserControl. In the RadGrid1_NeedDataSource event, the DataSource is bound to a SqlDataSource object ("this.RadGrid1.DataSource = this.sdsLeadDistributionSummary"). My problem is that it takes about 20 seconds for the user control (which is currently blank - it does not contain any logic) to pop up on edit. The edit column is autogenerated. The stored procedure behind the sql data source control executes in about 24 milliseconds. What could be causing the 20 second dealy for the user control to pop up? The same issue exists with GroupLoadMode of Client and Server. Note that the stored procedure only returns about 260 records. If I change the stored procedure to only return the top 10, the loading is much faster. So something must be happening to each of the 260 rows that is very time consuming. Any ideas?

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 28 Apr 2010, 02:44 PM
Hello Joe,

Could you please specify what controls do you have in the UserControls used for edit form?

All the best,
Pavlina
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.
0
Joe Kalinowski
Top achievements
Rank 1
answered on 28 Apr 2010, 02:47 PM
All I have right now is a blank text box. It's not bound or anything. Also, if i turn on paging and set the page size to 10, performance is much better. The smaller the page size, the better the performance. The relationship between page size and performance seems to be linear.
0
Pavlina
Telerik team
answered on 29 Apr 2010, 03:33 PM
Hello Joe,

I suggest that you examine the following online example and let me know if it helps to avoid the performance issue:
http://demos.telerik.com/aspnet-ajax/input/examples/radinputmanager/dynamicinputfiltersettings/defaultcs.aspx?product=grid

Regards,
Pavlina
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
Grid
Asked by
Joe Kalinowski
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Joe Kalinowski
Top achievements
Rank 1
Share this question
or