hi,
I have created a dynamic tab function. When i click button1 it will create dynamic tab and pageview for that tab. But when i deleted that tab that pageview is not deleting. Can any one help me to fix thisHERE IS MY SAMPLE CODE
protected void Button2_Click(object sender, EventArgs e) |
{ |
Tab currentTab = RadTabStrip1.InnerMostSelectedTab; |
if (currentTab != null) |
{ |
ITabContainer owner = currentTab.Owner; |
owner.Tabs.Remove(currentTab); |
//RadMultiPage1.PageViews.Remove(currentTab.PageView); |
if (owner.Tabs.Count > 0) |
{ |
owner.SelectedIndex = 0; |
} |
} |
} |