code for re-ordering tabs in code-behind?

2 posts, 0 answers
  1. tim
    tim avatar
    3 posts
    Member since:
    May 2011

    Posted 21 Oct 2011 Link to this post

    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.
  2. Kate
    Kate avatar
    1898 posts

    Posted 26 Oct 2011 Link to this post

    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,
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top