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

Are RadPageViews loaded automatically or only when they are Selected?

2 Answers 107 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Cody
Top achievements
Rank 1
Cody asked on 16 Mar 2014, 06:57 PM
Hello,

I've got a RadMultiPage that displays it's RadPageViews based on a tab selected in a RadTabStrip.
What I want to know is if every RadPageView loads all at once (When the RadMultiPage loads) or do they load individually based on the tab that is selected in the RadTabStrip.

I am trying to create a wizard and I want to know if it would be wise to use the RadPageView_Load event to handle methods for an individual RadPageView.
Say I have a RadPageView called "Step2RadPageView". What if I wanted to run certain methods ONLY when this PageView is Selected?

Similar to using a normal asp.net MultiView and using the View.Activate event.

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Mar 2014, 09:57 AM
Hi Cody,

By default all RadPageViews will be rendered while loading time itself. You can use  the RenderSelectedPageOnly to make the RadMultiPage control render only the selected RadMultiPage. This can save output size  because by default all pageviews are rendered . If RenderSelectedPageOnly is set to true RadMultiPage will make a request to the server in order to change the selected pageview.  In order to load the content of the other PageViews once they are selected a postback should be made upon tab switching.

Thanks,
Princy.
0
Cody
Top achievements
Rank 1
answered on 17 Mar 2014, 01:37 PM
Hi Princy,

This certainly sounds like the solution that I need. In this case, I could use the RadPageView.Load event to handle any events exclusive to the PageView being rendered at the moment.

Thank you,
Cody
Tags
TabStrip
Asked by
Cody
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Cody
Top achievements
Rank 1
Share this question
or