Dear Telerik,
I am facing big blow in my applications performance with NestedGrid.
I am having the parent grid and it has four nested grids. Each nested grid placed in each tab section with the help of multipage.
As per the Telerik direction I used the Parentgrid’s pre_render event to bind all the child or nested grids as the code given below
protected void ParentGrid_PreRender(object sender, EventArgs e) |
{ |
foreach (GridDataItem item in ParentGrid.MasterTableView.Items) |
{ |
if (item.Expanded) |
{ |
//foreach (GridNestedViewItem item1 in RadFirmGrid.MasterTableView.GetItems(GridItemType.NestedView)) |
//{ |
GridNestedViewItem item1 = RadFirmGrid.MasterTableView.GetItems(GridItemType.NestedView)[item.ItemIndex] as GridNestedViewItem; |
// Binding Cutomer grid |
RadGrid Child1 = (RadGrid)item1.FindControl("Customer"); |
// Binding Products grid |
RadGrid Child2 = (RadGrid)item1.FindControl("Products"); |
But my application seemed is loading very slowly for each time the operation of grids or child grids Edit, grouping/sorting operation has been done. Because it calls parent grids pre_render event, then binds all the child grids again.
Note: Based on the above mentioned code logic, the grids expanded loops to be done as much of the time number of items I expanded. So again binding occurs as much time.
So how can I make my application more optimistic? Whether it would be ok if I bind the nested grid for each respective tab is selected. if i did that will the performance be ok. If so how can I achieve it?
So please direct me to solve the issue of performance with some sample of code.
Help would be appreciated..
Regards,
John