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

RadMultiPage1_PageViewCreated on tab click

2 Answers 85 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
feras
Top achievements
Rank 1
feras asked on 29 Oct 2008, 07:21 PM
hi,
this is really great that this function keep the viewstate on dynamic loaded user controls, but this loads all pageviews and if i have alot then this will slow down the page, is there a way to apply on tab click event ? meaning that when i click on a tab it loads the pageview related to it with the dynamic controls in it and keep viewstate.

thx in advanced

2 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 30 Oct 2008, 06:31 AM
Hi feras,

You could easily achieve your goal by simple setting the multipage's RenderSelectedPageOnly property to True. Please note that in order to use the RenderSelectedPageOnly property of the multipage, you have to set the AutoPostBack property of the tabstrip to True as well.

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 pageviews/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.

All the best,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
feras
Top achievements
Rank 1
answered on 30 Oct 2008, 07:40 AM
thanks alot for your fast answer,
that explains perfectly, but is there a way with any from your controls to achive what i want
Tags
TabStrip
Asked by
feras
Top achievements
Rank 1
Answers by
Paul
Telerik team
feras
Top achievements
Rank 1
Share this question
or