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

[Solved] Tabstrip contents persist after full page reload?

2 Answers 90 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joan Vilariño
Top achievements
Rank 2
Joan Vilariño asked on 14 Apr 2010, 12:11 PM
Hello... I have a very big form with lots of fields on it... so I have splitted all the data accross diferent tabs.

I have a page for "Details" with all his tabs in separate DetailsTab1.ascx, DetailsTab2.asc, and so... that get loaded dynamically using LoadContentFrom.... 

When the user selects the "Edit" button, i load another full page called "Edit" that is the same form in edit mode with textboxes, dropdowns, and so on... this page is also splitted in EditTab1.ascx, EditTab2.ascx... and gets loaded dynamically using LoadContentFrom as the previous one.

The problem is... when I choose "Save" (form post button) in this Edit page, my controller saves to database and does a RedirectToAction to page "Details" that shows the data. 

The problem is, sometimes when Details loads after the post, the data is not updated even when I am reloading the full page, or sometimes it is, but clicking on "Edit" loads the edit page again and the old data is shown in edit mode...

Are you caching contents or anything like that?

Thanks in advance.


2 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 14 Apr 2010, 02:27 PM
Hello Joan,

Indeed, the LoadContentFrom method was caching the AJAX request contents. We have fixed that - the necessary change is to add a cache: false property when making the AJAX calls, like this:

            $.ajax({
                type: 'GET',
                cache: false,

Should be around line 180 of telerik.panelbar.js and around line 172 in telerik.tabstrip.js.

Sincerely yours,
Alex Gyoshev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Joan Vilariño
Top achievements
Rank 2
answered on 15 Apr 2010, 09:51 AM
It worked, thank you!

PS: I guess this will be implemented in new version?
Tags
TabStrip
Asked by
Joan Vilariño
Top achievements
Rank 2
Answers by
Alex Gyoshev
Telerik team
Joan Vilariño
Top achievements
Rank 2
Share this question
or