Load the selected PageView only the first time

Thread is closed for posting
7 posts, 0 answers
  1. 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD 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. 7776010B-C8FE-49FB-9DE7-8836C5FB5314
    7776010B-C8FE-49FB-9DE7-8836C5FB5314 avatar
    2 posts
    Member since:
    Jul 2016

    Posted 15 Aug 2016 in reply to 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD Link to this post

    only defaul behavior works; the renderselectedpageonly and 3. custom approach are not working.
  3. 7776010B-C8FE-49FB-9DE7-8836C5FB5314
    7776010B-C8FE-49FB-9DE7-8836C5FB5314 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. 1F02C51D-E36D-42DC-A76F-C096F69EFEA1
    1F02C51D-E36D-42DC-A76F-C096F69EFEA1 avatar
    111 posts
    Member since:
    Mar 2011

    Posted 09 Dec 2020 in reply to 7776010B-C8FE-49FB-9DE7-8836C5FB5314 Link to this post

    Please post the difference.  The comment is intriguing but what did you do?  Thanks!
  5. E0B8B146-EE4E-4C4D-A1D5-BB2E6C929855
    E0B8B146-EE4E-4C4D-A1D5-BB2E6C929855 avatar
    2425 posts
    Member since:
    Apr 2022

    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. 1F02C51D-E36D-42DC-A76F-C096F69EFEA1
    1F02C51D-E36D-42DC-A76F-C096F69EFEA1 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. E0B8B146-EE4E-4C4D-A1D5-BB2E6C929855
    E0B8B146-EE4E-4C4D-A1D5-BB2E6C929855 avatar
    2425 posts
    Member since:
    Apr 2022

    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.