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

Is it possible to return to the same tab after refreshing the page?

3 Answers 40 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.
Andy McShane
Top achievements
Rank 1
Andy McShane asked on 08 Mar 2010, 02:45 PM
Hi, I have a page that has a tab control on it. If I click onto say tab 3 and then hit f5 or refresh the page I always return back to back to tab 1. Is it possible to return back to the correct tab that was being viewed after a refresh?

3 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 08 Mar 2010, 04:03 PM
Hello Andy,

If I understand you correctly, you need to save the state of the component after you make new request to the server (pressing F5). This functionality is not achievable with ASP.NET MVC. In fact you cannot achieve it with ASP.NET WebForms too.

If you post the page to the server, then the state of the control will be saved in the ViewState if you are using ASP.NET WebForms.

The ASP.NET MVC framework does not provide such functionality for saving the state of the components. Thus if need to open the last clicked tab, you need to save its index in a hidden field and send it to the server, using POST method. Hence you can set the SelectedIndex of the component.

If you refresh page using GET method, its content will be rendered the way it was defined in the ASPX.

Regards,
Georgi Krustev
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
Andy McShane
Top achievements
Rank 1
answered on 08 Mar 2010, 04:45 PM
Ok, I understand, thanks.
0
Georgi Krustev
Telerik team
answered on 08 Mar 2010, 05:29 PM
Hello Andy,

After some internal discussions we discovered that this functionality could be implemented into tabstrip, but it will required further investigation. Currently it is added to our product backlog.

Best wishes,
Georgi Krustev
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.
Tags
TabStrip
Asked by
Andy McShane
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Andy McShane
Top achievements
Rank 1
Share this question
or