Are RadPageViews loaded automatically or only when they are Selected?

3 posts, 0 answers
  1. Cody
    Cody avatar
    4 posts
    Member since:
    Mar 2014

    Posted 16 Mar 2014 Link to this post


    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 MultiView and using the View.Activate event.

    Thanks in advance.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 17 Mar 2014 in reply to Cody Link to this post

    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.

  3. DevCraft R3 2016 release webinar banner
  4. Cody
    Cody avatar
    4 posts
    Member since:
    Mar 2014

    Posted 17 Mar 2014 in reply to Princy Link to this post

    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,
Back to Top