This is a migrated thread and some comments may be shown as answers.

Load tabbed page on request

2 Answers 79 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Arno
Top achievements
Rank 2
Arno asked on 30 Jun 2009, 10:18 AM
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 Answers, 1 is accepted

Sort by
0
Alex Lawson
Top achievements
Rank 1
answered on 30 Jun 2009, 12:09 PM
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 :-)
0
Accepted
Paul
Telerik team
answered on 30 Jun 2009, 02:19 PM
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.
Tags
TabStrip
Asked by
Arno
Top achievements
Rank 2
Answers by
Alex Lawson
Top achievements
Rank 1
Paul
Telerik team
Share this question
or