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

Fisrt ScrollChildren should be Fixed

1 Answer 43 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Gaurav
Top achievements
Rank 1
Gaurav asked on 22 Jun 2010, 09:24 AM
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" >
                                        </telerik:RadTabStrip>



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));
                RadTabStripILMain.DataBind();
            }
        }
        else if (e.Tab.Level == 1)
        {
            RadTab ownerTab = (RadTab)e.Tab.Parent;
            if (ownerTab.Text != "Home")
            {
                InstantiateIn(ownerTab, ownerTab.Text, Convert.ToInt32(ownerTab.Value));
                RadTabStripILMain.DataBind();
            }
        }
        #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;
        //            }
        //        }
        //    }
        //}
        #endregion
    }




Thanks
Gaurav 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 22 Jun 2010, 03:26 PM
Hi Gaurav,

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

All the best,
Yana
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
TabStrip
Asked by
Gaurav
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or