Load tabbed page on request

3 posts, 1 answers
  1. Arno
    Arno avatar
    12 posts
    Member since:
    May 2008

    Posted 30 Jun 2009 Link to this post

    Hi all,

    I'm currently researching to see if we can use the Rad TabStrip in one of our latest webapplications. We want an application with several tabbed pages. If I'm not mistaking when a page with a TabStrip is loaded, then all the tabs are loaded at once.
    Since our application needs to have 10 tabs with on each one several inputcontrols, I'm concerned it will increase the page loading time seriously.

    Is there a wat to use tabbed pages, but to render a page only when it's tab is clicked?

    Thanks,
    Arno
  2. Alex Lawson
    Alex Lawson avatar
    43 posts
    Member since:
    May 2008

    Posted 30 Jun 2009 Link to this post

    Hi, I'm not a telerik guy but have used the tab page extensively.

    Yes you can setup the tab page to render selected pages, load dynamic controls and lots more.  All Telerik objects expose client events like tab click on client and server side so we as developers can easily integrate them into projects. 

    I've been using the full Telerik suite for 2 years on 10+ interactive websites, and have nothing but good things to say about the suite and the support offered :-)
  3. Answer
    Paul
    Admin
    Paul avatar
    4281 posts

    Posted 30 Jun 2009 Link to this post

    Hi Arno,

    You can easily achieve your goal by setting the RenderSelectedPageOnly property of RadMultiPage control to true. Please note that in order to use the RenderSelectedPageOnly property of the multipage, you will have to set the AutoPostBack property of the tabstrip to True as well. In addition, if you want to avoid the postbacks while moving between tabs, you can ajaxify both controls; simple place the tabstrip and the multipage controls into a RadAjaxPanel.

    Still, have in mind that RadTabstrip always reloads all of its pageviews. The RenderSelectedPageOnly property does just that - it renders only the selected page view; the code-behind of your page / UserControls will be fired no matter which pageview is rendered. Loading all pageviews is essential for the server controls living in the page views. If we don't load them every time viewstate will be corrupted and postback events won't fire.

    Alternatively, you can use the approach shown in our TabStrip / Load on Demand RadPageView example.

    All the best,
    Paul
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
Back to Top