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

Issue with dynamically generated pageview

1 Answer 9 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Babu Puchakayala
Top achievements
Rank 1
Babu Puchakayala asked on 24 May 2010, 09:00 PM

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 this

HERE 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;  
            }  
        }  
    }  

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 27 May 2010, 04:03 PM
Hello Babu,

Try removing the PageView first and then remove the Tab. Using the PageView property requires the Tab to be part of a RadTabStrip.

I hope this helps.

All the best,
Tsvetomir Tsonev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Babu Puchakayala
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or