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

Large performance hit on e.Item.Expanded = true

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 10 Feb 2015, 11:14 PM
In the ItemCommand event on my RadGrid I have the following section:
if (e.CommandName == RadGrid.ExpandCollapseCommandName || e.CommandName.Equals("RowClick",StringComparison.InvariantCultureIgnoreCase)) {
                e.Item.Expanded = true;
                e.Item.Selected = true;
   }

The e.Item.Expanded being set to true is taking 10-14 seconds to resolve, what could be happening that would cause such a large performance hit? 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 13 Feb 2015, 11:05 AM
Hi Eric,

If you have hierarchical grid, use on demand loading (HierarchyLoadMode.ServerOnDemand) of detail tables with DetailTableDataBind child tables content generation. You can combine these settings with:
single expand for grid items at the same level:
http://www.telerik.com/help/aspnet-ajax/grid-single-expand-in-hierarchical-grid.html

More useful tips for optimizing grid performance are available here:
http://www.telerik.com/help/aspnet-ajax/grid-viewstate-reduction-techniques.html

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Eric
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or