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

code for re-ordering tabs in code-behind?

1 Answer 46 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
tim
Top achievements
Rank 1
tim asked on 21 Oct 2011, 06:02 AM
I have a strip of tabs set out in the normal way in the code-in-front. I would like to be able to change the order of appearance of the tabs in the strip. e.g.

Tab 1 | Tab 2 | Tab 3 | Tab 4

but I want to programatically, with a postback, change the on screen order of these to

Tab 3 | Tab 1 | Tab 4 | Tab 2

(or whatever). Is this possible, i fiddled for a while but couldn't see how it was done.

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 26 Oct 2011, 09:41 AM
Hi Tim,

To be able to achieve that you will need to delete the tab whose position you want to change and the insert it again to its new position. Here I have attached a simple runnable page that demonstrates the approach. 

Best wishes,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
TabStrip
Asked by
tim
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or