Working with RadMultiPage PageViewCreated on Postback

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    6 posts
    Member since:
    Mar 2011

    Posted 02 Dec 2013 Link to this post

    Hi There,

    The issue I am having is related to these next two threads but was never really answered.

    I completely understand that it is by design that the RadMultiPage PageViewCreated event fires (it seems) on every postback before Page_Load even occurs.

    My problem is this:

    I am building a sort of survey application that will have a dynamic number of pages (tabs)  that follows the wizard format in the Telerik online demos for the RadTabStrip. As a part of the page view creation for each page, I am loading a user control and doing an initialization routine where I dynamically load other user controls depending on the type of page that I am loading.

    As a result, whenever I do a postback (e.g. a button click on a user control within a page that does a search) it takes a really long time to finish the request. I thought about doing some sort of conditional initialization of the controls to cut out some of the over head but I find the fact that PageViewCreated fires before everything else a bit difficult.

    Also, if I don't fully intialise and load the controls (using LoadControl) on first page load, it seems the RadTabStrip and RadMultiPage lose state and the controls are no longer there.

    Can anyone suggest an approach?

    Thanks for any suggestions or input.

    Kevin Parkinson
  2. Nencho
    Nencho avatar
    1663 posts

    Posted 05 Dec 2013 Link to this post

    Hello Kevin,

    I am afraid that your observations are correct, and if you achieve a logic or condition, where you could omit loading any UserControl, the state of the controls nested in it would be lost at the postback on question, and the already filled data would be lost.

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top