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

Overlapping tabs problem

2 Answers 47 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Tho Shi Teng
Top achievements
Rank 1
Tho Shi Teng asked on 06 Jul 2011, 09:36 AM
dear all,

I am trying to add in pictures for the tabs, and want them to overlap (like the attached picture).

I use margin on all of them, so that they will squeeze together, and then use z-index to arrange them.

but the problem is the z-index only affects the first tab, the other 3 tabs does not arrange according to the z-index

I use C# (Telerik Version=2010.3.1317.35) and my code looks like :

AddTab("Account Info", true, "10");
AddTab("Enter Info", true, "8");
AddTab("Confirm Info", true, "2");
AddTab("Submit", true, "1");

private void AddTab(string tabName, bool enabled, string zIndex)
{
RadTab tab = new RadTab(tabName);

tab.Style.Add("margin-right", "-28px");
tab.Style.Add("position", "relative");
tab.Style.Add("z-index", zIndex);
tab.Enabled = enabled;
RadTabStrip1.Tabs.Add(tab);

2 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 07 Jul 2011, 04:18 PM
Hello Tho Shi Teng,

The code that you provided is not enough so we can reproduce the issue locally and inspect where the issue comes from. Since the problem that you encounter is very customized one I would suggest that you open a support ticket and send us a runnable simple project that demonstrates the issue. 

Greetings,
Kate
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Tho Shi Teng
Top achievements
Rank 1
answered on 11 Jul 2011, 10:09 AM
Hi Kate,

  Thanks for the reply. I will request a support ticket
Tags
TabStrip
Asked by
Tho Shi Teng
Top achievements
Rank 1
Answers by
Kate
Telerik team
Tho Shi Teng
Top achievements
Rank 1
Share this question
or