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

Using router for pagginaton of grid

3 Answers 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marek
Top achievements
Rank 1
Marek asked on 20 Mar 2013, 05:42 PM
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.

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 22 Mar 2013, 10:36 AM
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!
0
Marek
Top achievements
Rank 1
answered on 22 Mar 2013, 01:33 PM
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.
0
Petur Subev
Telerik team
answered on 26 Mar 2013, 10:07 AM
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!
Tags
Grid
Asked by
Marek
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Marek
Top achievements
Rank 1
Share this question
or