Sunday, March 11, 2012

tabcontainer tab order

Hi Jrieder,

As far as I know, it is not supported on the design mode by now. But you can go to the source code and do "cut and paste" work to achieve what you want easily.

I hope this help.

Best regards,

Jonathan


"cut and paste" in the source code? Are you saying I can access the container's class and order the tabs in any manner I choose? Have you done any manipulation of the container code yourself ?


Hi Jrieder,

I have tested on Visual Studio 2005 + AJAX Control Toolkit V10920 and V10618 , Visual Studio 2008 + AJAX Control Toolkit V11119.

jrieder:

"cut and paste" in the source code?

I mean that if you want to move TabPanel2 before TabPanel1, you should go to the source code, cut the TabPanel2 code snippet and paste it before the TabPanel1. For example,

The original:

<ajaxToolkit:TabContainer ID="TabContainer1" runat="server" AutoPostBack="false" ActiveTabIndex="1">
<ajaxToolkit:TabPanel ID="TabPanel1" runat="server">
<HeaderTemplate>Tab1</HeaderTemplate>
<ContentTemplate>
<div id ="myDiv"><%=DateTime.Now.ToString() %></div>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel ID="TabPanel2" runat="server">
<HeaderTemplate>Tab2</HeaderTemplate>
<ContentTemplate>Wonderful</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>

Current,

<ajaxToolkit:TabContainer ID="TabContainer1" runat="server" AutoPostBack="false" ActiveTabIndex="1">
<ajaxToolkit:TabPanel ID="TabPanel2" runat="server">
<HeaderTemplate>Tab2</HeaderTemplate>
<ContentTemplate>Wonderful</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel ID="TabPanel1" runat="server">
<HeaderTemplate>Tab1</HeaderTemplate>
<ContentTemplate>
<div id ="myDiv"><%=DateTime.Now.ToString() %></div>
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>

Thanks

Best regards,

Jonathan


Thanks Jonathan.

I thought that was what you meant and looked at my code in the aspx page that builds the tabs and for some reason I could not see the content for the tab in question though all displays well...kind of wierded me out so I will wait to copy the page before I moving what is 'visible' and see if that does the trick.

Appreciate your response.

John

No comments:

Post a Comment