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
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