PanelBar Load on demand with Multipage

5 posts, 1 answers
  1. tri
    tri avatar
    10 posts
    Member since:
    Oct 2006

    Posted 03 Feb 2011 Link to this post

    Hi

    I have a  similar front-end to the Outlook Navigation demo for the panelbar using mutlipage controls, the different is they are separated by a splitter because we needed the splitter functionality.

    In the solution we have we are using RenderSelectedPageOnly="true" on the multipage and using an AjaxManager so we can change the page the page when the panelbar is clicked. This was done because some of the pages called by the multipage can take a while to load and we didn't want them all loading at once.

    However now each page is loaded when it is needed, which is all well and good but some of the users change page many times and others will stay on the same page.

    Is there a way to have load on demand similar to the Tabstrip Demo that has the JS

    <script type="text/javascript">
    function onTabSelecting(sender, args)
    {
        if (args.get_tab().get_pageViewID())
        {
            args.get_tab().set_postBack(false);
        }
    }
    </script>
    
    So once a page is loaded it is not loaded again?
    
    Thanks

  2. tri
    tri avatar
    10 posts
    Member since:
    Oct 2006

    Posted 04 Feb 2011 Link to this post

    Anyone?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 07 Feb 2011 Link to this post

    Hello,

    You can use the same approach with RadPanelBar and its OnClientItemClicking event but in this case RenderSelectedPageOnly should be set to "false".

    Best wishes,
    Yana
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  5. tri
    tri avatar
    10 posts
    Member since:
    Oct 2006

    Posted 10 Feb 2011 Link to this post

    Thanks I will give this ago and see if it works
  6. tri
    tri avatar
    10 posts
    Member since:
    Oct 2006

    Posted 10 Feb 2011 Link to this post

    Cheers this appears to do the trick, I had used this before but it didn't exactly do what because I hadn't put my different pageviews into separate user controls. This was the step I was really missing thanks for the help.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017