This is a migrated thread and some comments may be shown as answers.

Nested tabstrip clearing parent pageviews on postback

2 Answers 29 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 12 Apr 2019, 04:06 PM

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 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 17 Apr 2019, 12:45 PM
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.
0
Jeff
Top achievements
Rank 1
answered on 23 Apr 2019, 04:54 PM
Thank you for the tips Eyup. We'll give that a shot. Jeff
Tags
TabStrip
Asked by
Jeff
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or