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

Add tab in code at specific index

1 Answer 46 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
jfkrueger
Top achievements
Rank 1
jfkrueger asked on 10 Sep 2010, 05:40 PM
Is there a way to add a tab at a specific spot in the tabstrip rather than having it always just adding the new tab to the end?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Sep 2010, 08:03 AM
Hello Joe,

You can use insert() method to add a tab at a specific location in a tabstrip.

Code sample:
protected void Page_Load(object sender, EventArgs e)
   {
       RadTab rdtab = new RadTab();
       rdtab.Text = "NewTab";
       RadTabStrip1.Tabs.Insert(1, rdtab);
   }


Regards,
Shinu.
Tags
TabStrip
Asked by
jfkrueger
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or