Fisrt ScrollChildren should be Fixed

2 posts, 0 answers
  1. Gaurav
    Gaurav avatar
    6 posts
    Member since:
    Jun 2010

    Posted 22 Jun 2010 Link to this post

    Hi ,

    I am using  RadTabStrip control and make the property ScrollChildren="True" and its working fine .
    What i want to scroll all the tabs but the first one tab created should be fixed so i want to scroll my created tabs to scroll through Second tab and all tabs .

    Could there be any way to make this type of changes to scroll through all the tabs expect the First Tab .

    Please answer this i need it very urgent

    The HTML part of the tab control is as following
         <telerik:RadTabStrip runat="server" ID="RadTabStripILMain" SelectedIndex="0" ScrollButtonsPosition="Right"
                                                ScrollChildren="true" PerTabScrolling="true" OnTabClick="RadTabStripILMain_TabClick"
                                                EnableEmbeddedSkins="false" Skin="ILTabSkin" Width="694px" >

    and the Code behind part of the used RadTabStrip is as following

      protected void RadTabStripILMain_TabClick(object sender, RadTabStripEventArgs e)
            RadTab tabToSelect = null;
            if (e.Tab.Level == 0)
                if (e.Tab.Text != "Home")
                    tabToSelect = RadTabStripILMain.InnermostSelectedTab;
                    SelectedTabID = Convert.ToInt32(tabToSelect.Value);
                    InstantiateIn(e.Tab, e.Tab.Text, Convert.ToInt32(e.Tab.Value));
            else if (e.Tab.Level == 1)
                RadTab ownerTab = (RadTab)e.Tab.Parent;
                if (ownerTab.Text != "Home")
                    InstantiateIn(ownerTab, ownerTab.Text, Convert.ToInt32(ownerTab.Value));
            #region My Code
            //if (e.Tab.Level == 0)
            //    if (e.Tab.Text != "Home")
            //    {
            //        RadTab currentTab = e.Tab;
            //        if (currentTab != null)
            //        {
            //            RadTabStripILMain.Tabs.Remove(currentTab);

            //            if (RadTabStripILMain.Tabs.Count > 0)
            //            {
            //                RadTabStripILMain.SelectedIndex = 0;
            //            }
            //        }
            //    }

  2. Yana
    Yana avatar
    5043 posts

    Posted 22 Jun 2010 Link to this post

    Hi Gaurav,

    I'm afraid that currently RadTabStrip doesn't support this - the only option is to scroll all the tabs.

    All the best,
    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
Back to Top