Dear Telerik,
Is there any way to bind the child (or) nested grid based on the corresponding tab selected?
Say example, if I select the first tab of the nested grid the respective grid need to be bind only that time rest of grids not need to bind. Suppose if I go to the second tab then the only that time the second grid need to bind mean while the first tab grid data need to be set nothing or clear.
Whether the above mentioned way would help to achieve the speed or performance of the grid. If so point out how we can achieve the scenario.
I used the below mentioned to bind the nested grid's already, but it leads to slow in loading the nested grid for each operations
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"); |
Looking forward for your guidance
-Thanks