+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / It stays on the first tab information.

It stays on the first tab information.

2 posts, 0 answered
  1. mathieu cupryk
    mathieu cupryk avatar
    2 posts
    Registered:
    03 Jul 2009
    03 Nov 2009
    Link to this post

    When I goto the other tabs it keeps the information from the first tab.

    <%

    @ Page Language="C#" MasterPageFile="~/MasterPages/TwoColumn.master" AutoEventWireup="true"

     

     

    CodeBehind="UserProfile.aspx.cs" Inherits="OmegaLove.Web.UI.Pages.UserProfile"

     

     

    Title="Untitled Page" %>

     

    <%

    @ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

     

    <%

    @ Register Src="~/Controls/ctrlUserInformation.ascx" TagName="ctrlUserInformation"

     

     

    TagPrefix="uc1" %>

     

    <%

    @ Register Src="~/Controls/ctrlAboutMe.ascx" TagName="ctrlAboutMe" TagPrefix="uc2" %>

     

    <%

    @ Register Src="~/Controls/ctrlPhysicalAttributes.ascx" TagName="ctrlPhysicalAttributes"

     

     

    TagPrefix="uc3" %>

     

    <%

    @ Register Src="~/Controls/ctrlLifeStyle.ascx" TagName="ctrlLifeStyle" TagPrefix="uc4" %>

     

    <%

    @ Register Src="~/Controls/ctrlVisitorInformation.ascx" TagName="ctrlVisitorInformation"

     

     

    TagPrefix="uc5" %>

     

    <%

    @ Register Src="~/Controls/ctrlRelationshipChildren.ascx" TagName="ctrlRelationshipChildren"

     

     

    TagPrefix="uc6" %>

     

    <%

    @ Register Src="~/Controls/ctrlUserProfile.ascx" TagName="ctrlUserProfile" TagPrefix="uc7" %>

     

    <%

    @ Register Src="~/Controls/ctrlUserProfilePics.ascx" TagName="ctrlUserProfilePics" TagPrefix="uc8" %>

     

    <

     

    asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="server">

     

     

    <div>

     

     

    <telerik:RadTabStrip runat="server" ID="RadTabStrip1" Skin="GlossyBlue" EnableEmbeddedSkins="False"

     

     

    AutoPostBack="true" MultiPageID="RadMultiPage1" SelectedIndex="0" OnTabClick="RadTabStrip1_TabClick">

     

     

    <Tabs>

     

     

    <telerik:RadTab Text="MY PERSONAL INFORMATION" PageViewID="RadPageView1">

     

     

    </telerik:RadTab>

     

     

    <telerik:RadTab Text="MY GENERAL INFORMATION" PageViewID="RadPageView2">

     

     

    </telerik:RadTab>

     

     

    <telerik:RadTab Text="LOOKING FOR" PageViewID="RadPageView3">

     

     

    </telerik:RadTab>

     

     

    <telerik:RadTab Text="MY INTEREST" PageViewID="RadPageView4">

     

     

    </telerik:RadTab>

     

     

    <telerik:RadTab Text="MY PICTURES" PageViewID="RadPageView5">

     

     

    </telerik:RadTab>

     

     

    </Tabs>

     

     

    </telerik:RadTabStrip>

     

    <%

    ------------------------------------------------------------------------------------------%>

     

     

    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" BorderColor="SlateBlue"

     

     

    BorderWidth="2" CssClass="multiPage" Height="650px" ScrollBars="Auto" Width="95%">

     

    <%

    ------------------------------------------------------------------------------------------%>

     

     

    <telerik:RadPageView ID="RadPageView1" runat="server">

     

     

    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">

     

     

    <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="WebBlue" Width="100%">

     

     

    <Items>

     

     

    <telerik:RadPanelItem runat="server" Text="PERSONAL INFORMATION" Font-Bold="true"

     

     

    PreventCollapse="false" Expanded="true">

     

     

    <Items>

     

     

    <telerik:RadPanelItem runat="server">

     

     

    <ItemTemplate>

     

    <%

    --<uc1:ctrlUserInformation ID="ctrlUserInformation" runat="server" />

     

    --

     

    %>

     

     

    <uc7:ctrlUserProfile ID="ctrlUserProfile" runat="server" />

     

     

    </ItemTemplate>

     

     

    </telerik:RadPanelItem>

     

     

    </Items>

     

     

    </telerik:RadPanelItem>

     

     

    </Items>

     

     

    </telerik:RadPanelBar>

     

     

    </telerik:RadAjaxPanel>

     

     

    </telerik:RadPageView>

     

    <%

    ------------------------------------------------------------------------------------------%>

     

     

    <telerik:RadPageView ID="RadPageView2" runat="server">

     

     

    <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server">

     

     

    <telerik:RadPanelBar ID="RadPanelBar2" runat="server" Skin="WebBlue" Width="100%">

     

     

    <Items>

     

     

    <telerik:RadPanelItem runat="server" Text="GENERAL INFORMATION" Font-Bold="true"

     

     

    PreventCollapse="false" Expanded="true">

     

     

    <Items>

     

     

    <telerik:RadPanelItem runat="server">

     

     

    <ItemTemplate>

     

     

    <uc2:ctrlAboutMe ID="ctrlAboutMe" runat="server" />

     

     

    <uc5:ctrlVisitorInformation ID="ctrlVisitorInformation" runat="server" />

     

     

    </ItemTemplate>

     

     

    </telerik:RadPanelItem>

     

     

    </Items>

     

     

    </telerik:RadPanelItem>

     

     

    <telerik:RadPanelItem runat="server" Text="PHYSICAL CHARACTERISTICS" Font-Bold="true"

     

     

    PreventCollapse="false" Expanded="false">

     

     

    <Items>

     

     

    <telerik:RadPanelItem runat="server">

     

     

    <ItemTemplate>

     

     

    <uc3:ctrlPhysicalAttributes ID="ctrlPhysicalAttributes" runat="server" />

     

     

    </ItemTemplate>

     

     

    </telerik:RadPanelItem>

     

     

    </Items>

     

     

    </telerik:RadPanelItem>

     

     

    <telerik:RadPanelItem runat="server" Text="LIFESYLE AND HABBITS" Font-Bold="true"

     

     

    PreventCollapse="false" Expanded="false">

     

     

    <Items>

     

     

    <telerik:RadPanelItem runat="server">

     

     

    <ItemTemplate>

     

     

    <uc4:ctrlLifeStyle ID="ctrlLifeStyle" runat="server" />

     

     

    </ItemTemplate>

     

     

    </telerik:RadPanelItem>

     

     

    </Items>

     

     

    </telerik:RadPanelItem>

     

     

    <telerik:RadPanelItem runat="server" Text="RELATIONSHIPS AND CHILDREN" Font-Bold="true"

     

     

    PreventCollapse="false" Expanded="false">

     

     

    <Items>

     

     

    <telerik:RadPanelItem runat="server">

     

     

    <ItemTemplate>

     

     

    <uc6:ctrlRelationshipChildren ID="ctrlRelationshipChildren" runat="server" />

     

     

    </ItemTemplate>

     

     

    </telerik:RadPanelItem>

     

     

    </Items>

     

     

    </telerik:RadPanelItem>

     

     

    </Items>

     

     

    </telerik:RadPanelBar>

     

     

    </telerik:RadAjaxPanel>

     

     

    </telerik:RadPageView>

     

    <%

    ------------------------------------------------------------------------------------------%>

     

     

    <telerik:RadPageView ID="RadPageView3" runat="server">

     

     

    <telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server">

     

     

    <telerik:RadPanelBar ID="RadPanelBar3" runat="server" Skin="WebBlue" Width="100%">

     

     

    <Items>

     

     

    <telerik:RadPanelItem runat="server" Text="MY PREFERENCES" PreventCollapse="false" Font-Bold="true"

     

     

    Expanded="true">

     

     

    <Items>

     

     

    <telerik:RadPanelItem runat="server">

     

     

    <ItemTemplate>

     

    ----------------------

     

    </ItemTemplate>

     

     

    </telerik:RadPanelItem>

     

     

    </Items>

     

     

    </telerik:RadPanelItem>

     

     

    </Items>

     

     

    </telerik:RadPanelBar>

     

     

    </telerik:RadAjaxPanel>

     

     

    </telerik:RadPageView>

     

    <%

    ------------------------------------------------------------------------------------------%>

     

     

    <telerik:RadPageView ID="RadPageView4" runat="server">

     

     

    <telerik:RadAjaxPanel ID="RadAjaxPanel4" runat="server">

     

     

    <telerik:RadPanelBar ID="RadPanelBar4" runat="server" Skin="WebBlue" Width="100%">

     

     

    <Items>

     

     

    <telerik:RadPanelItem runat="server" Text="MY INTEREST" Font-Bold="true" PreventCollapse="false" Expanded="true">

     

     

    <Items>

     

     

    <telerik:RadPanelItem runat="server">

     

     

    <ItemTemplate>

     

    ---------------------

     

    </ItemTemplate>

     

     

    </telerik:RadPanelItem>

     

     

    </Items>

     

     

    </telerik:RadPanelItem>

     

     

    </Items>

     

     

    </telerik:RadPanelBar>

     

     

    </telerik:RadAjaxPanel>

     

     

    </telerik:RadPageView>

     

    <%

    ------------------------------------------------------------------------------------------%>

     

     

    <telerik:RadPageView ID="RadPageView5" runat="server">

     

     

    <telerik:RadAjaxPanel ID="RadAjaxPanel5" runat="server">

     

     

    <telerik:RadPanelBar ID="RadPanelBar5" runat="server" Skin="WebBlue" Width="100%">

     

     

    <Items>

     

     

    <telerik:RadPanelItem runat="server" Text="PICTURES" Font-Bold="true" PreventCollapse="false" Expanded="true">

     

     

    <Items>

     

     

    <telerik:RadPanelItem runat="server">

     

     

    <ItemTemplate>

     

     

    <uc8:ctrlUserProfilePics ID="ctrlUserProfilePics" runat="server" />

     

     

    </ItemTemplate>

     

     

    </telerik:RadPanelItem>

     

     

    </Items>

     

     

    </telerik:RadPanelItem>

     

     

    </Items>

     

     

    </telerik:RadPanelBar>

     

     

    </telerik:RadAjaxPanel>

     

     

    </telerik:RadPageView>

     

     

    </telerik:RadMultiPage>

     

     

    </div>

     

    </

     

    asp:Content>

     

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    04 Nov 2009
    Link to this post
    Hello mathieu cupryk,

    I am not able to reproduce problem with the code you sent. As I see you are adding some code OnTabClick event, so most probably something is going wrong there. Please give a try to the code below:

    <telerik:RadTabStrip runat="server" ID="RadTabStrip1"
    AutoPostBack="true" MultiPageID="RadMultiPage1" SelectedIndex="0">
     
    <Tabs>
    <telerik:RadTab Text="MY PERSONAL INFORMATION" PageViewID="RadPageView1">
    </telerik:RadTab>
    <telerik:RadTab Text="MY GENERAL INFORMATION" PageViewID="RadPageView2">
    </telerik:RadTab>
    <telerik:RadTab Text="LOOKING FOR" PageViewID="RadPageView3">
    </telerik:RadTab>
    <telerik:RadTab Text="MY INTEREST" PageViewID="RadPageView4">
    </telerik:RadTab>
    <telerik:RadTab Text="MY PICTURES" PageViewID="RadPageView5">
    </telerik:RadTab>
    </Tabs>
    </telerik:RadTabStrip>
     
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" BorderColor="SlateBlue"
     
    BorderWidth="2" CssClass="multiPage" Height="650px" ScrollBars="Auto" Width="95%">
    <telerik:RadPageView ID="RadPageView1" runat="server">
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
    <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="WebBlue" Width="100%">
    <Items>
    <telerik:RadPanelItem runat="server" Text="PERSONAL INFORMATION" Font-Bold="true"
    PreventCollapse="false" Expanded="true">
    <Items>
    <telerik:RadPanelItem runat="server">
    <ItemTemplate>
    <asp:Label runat="server" ID="label1" Text="additional label1" />
    </ItemTemplate>
    </telerik:RadPanelItem>
    </Items>
     
    </telerik:RadPanelItem>
    </Items>
    </telerik:RadPanelBar>
    </telerik:RadAjaxPanel>
    </telerik:RadPageView>
    <telerik:RadPageView ID="RadPageView2" runat="server">
    <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server">
    <telerik:RadPanelBar ID="RadPanelBar2" runat="server" Skin="WebBlue" Width="100%">
    <Items>
    <telerik:RadPanelItem runat="server" Text="GENERAL INFORMATION" Font-Bold="true" PreventCollapse="false" Expanded="true">
     
    <Items>
    <telerik:RadPanelItem runat="server">
    <ItemTemplate>
     
    <asp:Label ID="lablel4" runat="server" Text="additional label lablel4" />
     
    </ItemTemplate>
    </telerik:RadPanelItem>
     
    </Items>
     
    </telerik:RadPanelItem>
     
    <telerik:RadPanelItem runat="server" Text="PHYSICAL CHARACTERISTICS" Font-Bold="true"
     
    PreventCollapse="false" Expanded="false">
    <Items>
     
    <telerik:RadPanelItem runat="server">
     
    <ItemTemplate>
    <asp:Label ID="lablel3" runat="server" Text="additional lablel3 " />
     
    </ItemTemplate>
     
    </telerik:RadPanelItem>
     
    </Items>
     
    </telerik:RadPanelItem>
     
    <telerik:RadPanelItem runat="server" Text="LIFESYLE AND HABBITS" Font-Bold="true"
    PreventCollapse="false" Expanded="false">
     
    <Items>
     
     
    <telerik:RadPanelItem runat="server">
     
    <ItemTemplate>
     
     
    <asp:Label ID="label5" runat="server" Text="test label5" />
     
    </ItemTemplate>
     
    </telerik:RadPanelItem>
     
    </Items>
     
    </telerik:RadPanelItem>
     
    <telerik:RadPanelItem runat="server" Text="RELATIONSHIPS AND CHILDREN" Font-Bold="true" PreventCollapse="false" Expanded="false">
     
     
    <Items>
     
    <telerik:RadPanelItem runat="server">
     
     
    <ItemTemplate>
     
      
    <asp:Label ID="lablel2" runat="server" Text="additional lablel2" />
     
    </ItemTemplate>
     
     
    </telerik:RadPanelItem>
     
     
    </Items>
     
    </telerik:RadPanelItem>
     
    </Items>
     
    </telerik:RadPanelBar>
     
     
    </telerik:RadAjaxPanel>
     
     
    </telerik:RadPageView>
     
     
     
    <telerik:RadPageView ID="RadPageView3" runat="server">
     
    <telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server">
     
    <telerik:RadPanelBar ID="RadPanelBar3" runat="server" Skin="WebBlue" Width="100%">
     
     
    <Items>
     
    <telerik:RadPanelItem runat="server" Text="MY PREFERENCES" PreventCollapse="false" Font-Bold="true" Expanded="true">
     
    <Items>
     
    <telerik:RadPanelItem runat="server">
     
    <ItemTemplate>
     
    </ItemTemplate>
     
    </telerik:RadPanelItem>
     
    </Items>
     
     
    </telerik:RadPanelItem>
     
     
    </Items>
     
    </telerik:RadPanelBar>
     
    </telerik:RadAjaxPanel>
     
    </telerik:RadPageView>
     
    <telerik:RadPageView ID="RadPageView4" runat="server">
     
    <telerik:RadAjaxPanel ID="RadAjaxPanel4" runat="server">
     
    <telerik:RadPanelBar ID="RadPanelBar4" runat="server" Skin="WebBlue" Width="100%">
     
     
    <Items>
     
     
    <telerik:RadPanelItem runat="server" Text="MY INTEREST" Font-Bold="true" PreventCollapse="false" Expanded="true">
     
    <Items>
     
     
    <telerik:RadPanelItem runat="server">
     
    <ItemTemplate>
     
    </ItemTemplate>
     
     
    </telerik:RadPanelItem>
     
    </Items>
     
     
    </telerik:RadPanelItem>
     
     
    </Items>
     
     
    </telerik:RadPanelBar>
     
    </telerik:RadAjaxPanel>
     
    </telerik:RadPageView>
     
     
    <telerik:RadPageView ID="RadPageView5" runat="server">
     
    <telerik:RadAjaxPanel ID="RadAjaxPanel5" runat="server">
     
    <telerik:RadPanelBar ID="RadPanelBar5" runat="server" Skin="WebBlue" Width="100%">
     
    <Items>
     
    <telerik:RadPanelItem runat="server" Text="PICTURES" Font-Bold="true" PreventCollapse="false" Expanded="true">
     
    <Items>
     
    <telerik:RadPanelItem runat="server">
     
    <ItemTemplate>
     
    <asp:Label ID="label6" runat="server" Text="additional label label6" />
    </ItemTemplate>
    </telerik:RadPanelItem>
    </Items>
    </telerik:RadPanelItem>
    </Items>
    </telerik:RadPanelBar>
    </telerik:RadAjaxPanel>
    </telerik:RadPageView>
    </telerik:RadMultiPage>

    You can use Format Code block when you want to send any code instead of just pasting it in the post.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered