Using router for pagginaton of grid

4 posts, 0 answers
  1. Marek
    Marek avatar
    11 posts
    Member since:
    Aug 2012

    Posted 20 Mar 2013 Link to this post

    Is there way of using new Router functionality to use it with pager of grid?
    I would like to change URL when user changes the page and also change grid page when ULR changes so the button back and links to page works as expected.

    Thank you for reply.
  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 22 Mar 2013 Link to this post

    Hello Marek,

    The Router is actually using the changes applied to the fragment part of the URL and it is designed for the Mobile framework - the Grid widget could not take advantage of it.
    When changing the fragment part of the URL the page is not reloaded at all.

    I assume that you are trying to achieve what is covered in the project I attached. It uses the browser history API. Please take a detail look at the Browser compatibility at the bottom of the page - as you can see not every browser could support such behavior.

    Have a look at the attached project I hope it helps!

    Kind Regards,
    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Marek
    Marek avatar
    11 posts
    Member since:
    Aug 2012

    Posted 22 Mar 2013 Link to this post

    Hello Petur,

    thank you for project it will help.

    I need also fallback for IE<9 but with source you provided I can easily replace part using history api with another jquery history plugin that has IE<9 fallback using #hash + hash observer.
  4. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 26 Mar 2013 Link to this post

    Hello Marek,

    I am glad the project helped. Do not hesitate to share your solution with the rest of the community or even upload a code library article which might be of help for the others.

    Kind Regards,
    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top