Switch to tab server side

3 posts, 1 answers
  1. Markus
    Markus avatar
    196 posts
    Member since:
    Dec 2007

    Posted 22 Apr 2008 Link to this post

    I switch server side to another tab and use the radAjaxManager. I update pth the multipage view and the radTabStrip itself, but the correct pageview will not show (this worked in the old radTabStrip). So what is the correct way in the new control to show the correct tab?
  2. Answer
    Paul
    Admin
    Paul avatar
    4281 posts

    Posted 22 Apr 2008 Link to this post

    Hello Markus,

    We tried to reproduce the reported issue on our side, but to no avail. Please find below a sample code snippet that we used for our test.

    ASPX:
    <form id="form1" runat="server">  
            <asp:ScriptManager ID="ScriptManager1" runat="server">  
            </asp:ScriptManager> 
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" AutoPostBack="True" MultiPageID="RadMultiPage1" SelectedIndex="0">  
                <Tabs> 
                    <telerik:RadTab runat="server" Selected="True" Text="Root RadTab1">  
                    </telerik:RadTab> 
                    <telerik:RadTab runat="server" Text="Root RadTab2">  
                    </telerik:RadTab> 
                    <telerik:RadTab runat="server" Text="Root RadTab3">  
                    </telerik:RadTab> 
                </Tabs> 
            </telerik:RadTabStrip> 
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" RenderSelectedPageOnly="True" SelectedIndex="0">  
                <telerik:RadPageView ID="RadPageView1" runat="server">  
                    RadPageView1</telerik:RadPageView> 
                <telerik:RadPageView ID="RadPageView2" runat="server">  
                    RadPageView2</telerik:RadPageView> 
                <telerik:RadPageView ID="RadPageView3" runat="server">  
                    RadPageView3</telerik:RadPageView> 
            </telerik:RadMultiPage><asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /> 
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="RadTabStrip1">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" /> 
                            <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                    <telerik:AjaxSetting AjaxControlID="Button1">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" /> 
                            <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 
        </form> 
    </body> 

    Code-behind:
    protected void Button1_Click(object sender, EventArgs e)  
        {  
            RadTabStrip1.SelectedIndex = 1;  
            RadMultiPage1.SelectedIndex = 1;  
        } 

    Give it a try and let us know what's different in your case.

    Kind regards,
    Paul
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Markus
    Markus avatar
    196 posts
    Member since:
    Dec 2007

    Posted 22 Apr 2008 Link to this post

    Hello Paul,

    yes your example is working and I get it work now also at my side. The Tabstrip wasn't the problem, it was a misconfiguration in AjaxManager. In addition to the radMultipage I also defined controls on the radPageView to show again separate, what caused the problem. So now I know not to update other controls together with radMultiPage.

    Thanks for help and regards
    Markus
Back to Top