TabStrip and MultiPageView

2 posts, 0 answers
  1. HSD
    HSD avatar
    27 posts
    Member since:
    Jun 2007

    Posted 21 Apr 2008 Link to this post

    How do I display multiple views?

    What I mean by that is, I may want to display page1, page2, and page3 separatly BUT when I click on "ALL" it displays all of them.

    Can this be done without postback?

    Roger

  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 22 Apr 2008 Link to this post

    Hello RogerMCT,

    Here's a sample code snippet that shows the approach.

    <form id="form1" runat="server">     
        <asp:ScriptManager ID="ScriptManager1" runat="server">     
        </asp:ScriptManager>    
        
        <script type="text/javascript">     
        function test()     
        {     
            var multiPage = $find("<%=RadMultiPage1.ClientID %>");     
            var i;     
            for(i=0; i<multiPage.get_pageViews().get_count();i++)     
            {     
                multiPage.get_pageViews().getPageView(i).show();     
            }     
        }     
        </script>    
        
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server">     
            <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:RadPageView ID="RadPageView4" runat="server">     
                RadPageView4     
            </telerik:RadPageView>    
        </telerik:RadMultiPage>    
        <input id="Button1" type="button" value="button" onclick="test()" />    
    </form>    
     


    Greetings,
    Paul
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top