Remembering grid page on return from elsewhere

3 posts, 1 answers
  1. Tomica
    Tomica avatar
    147 posts
    Member since:
    Apr 2008

    Posted 15 May 2011 Link to this post

    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. Answer
    Mira
    Admin
    Mira avatar
    1124 posts

    Posted 19 May 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tomica
    Tomica avatar
    147 posts
    Member since:
    Apr 2008

    Posted 19 May 2011 Link to this post

    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.
Back to Top