Load the selected PageView only the first time

7 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 12 Feb 2016 Link to this post

    Requirements

    Telerik Product and Version

    3.5+

    Supported Browsers and Platforms

    FF - current and previous
    Chrome - current and previous
    IE8+

    Programming language

    JavaScript, C#, VB


    PROJECT DESCRIPTION 

    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.
  4. Allen
    Allen avatar
    111 posts
    Member since:
    Mar 2011

    Posted 09 Dec 2020 in reply to sue Link to this post

    Please post the difference.  The comment is intriguing but what did you do?  Thanks!
  5. Vessy
    Admin
    Vessy avatar
    2425 posts

    Posted 14 Dec 2020 Link to this post

    Hi Allen,

    Can you, please, share some more details about the scenario in which the solution the given in this Code library is not working? It will be great if you can send us a runnable project demonstrating the problem.

    Regards,
    Vessy
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

  6. Allen
    Allen avatar
    111 posts
    Member since:
    Mar 2011

    Posted 14 Dec 2020 Link to this post

    I will try to do so but extracting specific functionality from a long-deployed old WebForms application is very difficult.  It will be a few days.
  7. Vessy
    Admin
    Vessy avatar
    2425 posts

    Posted 14 Dec 2020 Link to this post

    Hi,

    Sure, Allen, take your time and let me know when the sample is ready. If it is more convenient for you, you can open a private support ticket on this matter, attaching the sample there.

    Regards,
    Vessy
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.