Load the selected PageView only the first time

3 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1628 posts
    Member since:
    Oct 2004

    Posted 12 Feb 2016 Link to this post


    Telerik Product and Version


    Supported Browsers and Platforms

    FF - current and previous
    Chrome - current and previous

    Programming language

    JavaScript, C#, VB


    This sample demonstrates the different ways of loading the views of RadMultiPage controlled by RadTabStrip:

    1. Default behavior - initially render all the views simultaneously.
    2. RenderSelectedPageOnly property - render only 1 view at a time.
    3. Custom approach - render the selected view only the first time

    The third option will render only the initial selected page view. All the other views have their Visible property disabled. Then, depending on the user select action, the content of the chosen view will be loaded and preserved in the ViewState. The benefit from this optimization is that the content in the invisible PageViews is not rendered, therefore, the binding logic of the contained controls is not executed. They are bound only when the user actually selects the corresponding tab. In addition, any consequent selection of the same tab will be done on the client without posting back to the server.

  2. sue
    sue avatar
    2 posts
    Member since:
    Jul 2016

    Posted 15 Aug 2016 in reply to Telerik Admin Link to this post

    only defaul behavior works; the renderselectedpageonly and 3. custom approach are not working.
  3. sue
    sue avatar
    2 posts
    Member since:
    Jul 2016

    Posted 15 Aug 2016 Link to this post

    By modifying the web.config, the other 2 tabs worked.
Back to Top