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

browser back button does not take back to the same tab

2 Answers 74 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
newbie
Top achievements
Rank 1
newbie asked on 23 Jun 2008, 06:51 PM
I have a tabstrip on my page.
some of my tabs have links to other pages.After I click the link and navigate to another page, if I use the browser back button to go back to the page it takes me back to the first tab page (that is shown on initial load) and not to the tab page that had the link.

I think it might have something to do with the AJAX on the tabstrip but is there a way to navigate back to the tab the user was working on?

2 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 24 Jun 2008, 02:11 PM
Hi newbie,

Please refer to the control's documentation under section Controls --> RadAjax --> Changes and backward compatibility --> Back and Forward browser buttons (browser history) for details on the matter.

Kind regards,
Paul
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
dlewis
Top achievements
Rank 1
answered on 24 Oct 2009, 06:45 PM
Thanks God I found this thread, this problems been driving me nuts. Spent a good 16 hours trying to track it down.  I've been converting from MS AJAX tabcontainer(which didn't have this problem).  Here's what I've found so far ,  with tabcontainer this is the sequence of events. On tab 1 I have a datagrid and go thru page 1,2,3 of the grid pages, then I click on tab 2.  When I hit the back button I go back to page 1 / grid page 1.

When going from Page 1 to Page 2 of the tab, this is what happens

In TabContainer this excecutes

tabContainer_ActiveTabChanged
LoadTabRelatedData()
ScriptManager1_Navigate

In RadTab this excecutes
    tabContainer_ActiveTabChanged
    LoadTabRelatedData()

So.... I missed a ScriptManager1_Navigate. Seemed logical considering I haven't hit back yet. After I got returned to Page 1/Grid page 1, I finally tried hitting the back button again.  Low and behold it took me to Page 1/Grid Page 3.  Exectly what should have happened in the first place. 

Hope there's going to be a fix for this soon, or does anyone know of a work around?

Tags
Ajax
Asked by
newbie
Top achievements
Rank 1
Answers by
Paul
Telerik team
dlewis
Top achievements
Rank 1
Share this question
or