How to remove child level tab in RadTAb

1 posts, 0 answers
  1. Sagar Baheti
    Sagar Baheti avatar
    28 posts
    Member since:
    May 2008

    Posted 15 Jul 2008 Link to this post

    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
Back to Top