Nested tabstrip clearing parent pageviews on postback

3 posts, 0 answers
  1. Jeff
    Jeff avatar
    47 posts
    Member since:
    Jan 2008

    Posted 12 Apr 2019 Link to this post

    We have a nested tabstrip with dynamically created tabs from the code behind. The parent tabstrip is also dynamically created and populated. When the page first loads both the parent tab pageviews and child tab pageviews are correct and both can be navigated. But when the child tabstrip has a postback created by a contained form, the pageviews for the parent tabstrip clear (except for the current open tab with the form). The parent tabs remain but no content underneath (except the current page with the child tabs).  The content can only be repopulated by reloading the full page. Note that a form postback at the parent page level does not clear the tab pageviews.

    We've tried variations of loading the tabs at postback and not postback but can't seem to find a combination that works. 

    Is there a way to correct this issue?

    thanks!

  2. Eyup
    Admin
    Eyup avatar
    4081 posts

    Posted 17 Apr 2019 Link to this post

    Hello Jeff,

    This is a rather complex nested scenario and we need to go step by step when troubleshooting it. Here are sample steps you can take:

    1. Disable AJAX if present and ensure the functionality works without AJAX at first:
    https://www.telerik.com/support/kb/aspnet-ajax/ajaxmanager/details/get-more-descriptive-errors-by-disabling-ajax

    2. Make sure every tab and every page view is loaded initially, even if they are not visible. We need to make sure that every page view is being properly generated regardless of performance.

    3. Once the previous steps are complete, we can now continue with optimizing the performance, i.e. creating the views dynamically/programmatically/on load(demand). For this step, you can check the options provided in the following code-library:
    https://www.telerik.com/support/code-library/load-the-selected-pageview-only-the-first-time

    I hope this will prove helpful.

    Regards,
    Eyup
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Jeff
    Jeff avatar
    47 posts
    Member since:
    Jan 2008

    Posted 23 Apr 2019 Link to this post

    Thank you for the tips Eyup. We'll give that a shot. Jeff
Back to Top