Hi,
I am using RadTabStrip and i am using sitemap datasource to create tabs.This means i have file Web.sitemap which contain hierarchy structure of tabs. Now depends on the user's roles i want to remove some tabs.
now i am using following code to remove tabs.
RadTab removeTab = RadTabStrip1.FindTabByText("Application Central");
if (removeTab != null)
{
RadTabStrip1.Tabs.Remove(removeTab);
}
this is working fine when i am remove first level tabs but when i am removing second level tabs it will give error as 'Index was out of range'. So please help me
Thanks and Regard
Sagar
I am using RadTabStrip and i am using sitemap datasource to create tabs.This means i have file Web.sitemap which contain hierarchy structure of tabs. Now depends on the user's roles i want to remove some tabs.
now i am using following code to remove tabs.
RadTab removeTab = RadTabStrip1.FindTabByText("Application Central");
if (removeTab != null)
{
RadTabStrip1.Tabs.Remove(removeTab);
}
this is working fine when i am remove first level tabs but when i am removing second level tabs it will give error as 'Index was out of range'. So please help me
Thanks and Regard
Sagar