This is a migrated thread and some comments may be shown as answers.
Remembering grid page on return from elsewhere
2 Answers 19 Views
This is a migrated thread and some comments may be shown as answers.
Tomica
Top achievements
Rank 2
Tomica asked on 15 May 2011, 10:40 PM
I am relatively new to AJAX design patterns. I have a grid which usually shows multiple pages, as a simple publication catalog.

Let's say the user navigates to page 5 using the standard control, and then clicks a templated column entry that contains a hyperlink to a publication detail page.

Using the browser's Back button returns to the same grid, same data, but resets to showing the first page of results. I think this is expected because the paging is done on the client and disappears once the page is left via the hyperlink.

I have set the scroll bars for the grid, and enabled maintain position options, so if I return to the page, the proper grid page is displayed.

So, is there a way to get these in sync? Note that I have set a fixed client scrolling size, enabled saving of viewstate, etc.

As a test, I have set the selected page index as an IIS session variable, and then reset the grid upon return, but this seems like a NON-best practice, if you know what I mean.

Also note that my question is not at all related to browser history with the Back button, as far as I can tell, that has no relevance here.

2 Answers, 1 is accepted

Sort by
0
Accepted
Mira
Telerik team
answered on 19 May 2011, 09:20 AM
Hello Tom,

I have followed your scenario and prepared a sample project for you demonstrating how the desired functionality can be implemented. You can find it attached to this message.
In it the SEO paging of the grid is enabled and the paging is handled using query strings.

I hope this helps.

Regards,
Mira
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Tomica
Top achievements
Rank 2
answered on 19 May 2011, 04:18 PM
I had missed the SEO option because the site is private, no bots invited.

I see that the query string approach works, but it seems to also defeat the Ajax functionality on grid paging.
Tags
Grid
Asked by
Tomica
Top achievements
Rank 2
Answers by
Mira
Telerik team
Tomica
Top achievements
Rank 2
Share this question
or