Hello,
I have a RadGrid with MasterView, a child GridTableView, and then a further child GridTableView. On a Button firing in the child view I do this:
protected void CIncludeConnection_Click(object sender, EventArgs e)
{
IncludeConnection_Click(sender, e);
RebindChildren();
}
protected void CExcludeConnection_Click(object sender, EventArgs e)
{
ExcludeConnection_Click(sender, e);
RebindChildren();
}
protected void RebindChildren()
{
GridTableView tableView = (GridTableView)ConnectionsGrid.MasterTableView.Items[0].ChildItem.NestedTableViews[0]; // accessing child gridview of first parentitem
tableView.Rebind();
}
which works fine, the grid view updates visually and no collapsing occurs.
The problem is with the Grandchild view where I do this:
protected void GCIncludeConnection_Click(object sender, EventArgs e)
{
IncludeConnection_Click(sender, e);
RebindGrandChildren();
}
protected void GCExcludeConnection_Click(object sender, EventArgs e)
{
ExcludeConnection_Click(sender, e);
RebindGrandChildren();
}
protected void RebindGrandChildren()
{
GridTableView tableView = (GridTableView)ConnectionsGrid.MasterTableView.Items[0].ChildItem.NestedTableViews[0]; // accessing child gridview of first parentitem
GridTableView nestedView = (GridTableView)tableView.Items[0].ChildItem.NestedTableViews[0]; // Accessing grandchild gridview
nestedView.Rebind();
}
Which works correctly but does not update visually at all.
Is there a generic method of addressing any grid at any depth and Rebinding without collapsing (a generic Masterview rebind collapses) from a button event given the sender object and the EventArgs?
protected void AnyConnectionOperation_Click(object sender, EventArgs e) ?
Thanks,