I'm using a grid to display the results from a search. The client made a request that when he/she bookmark the page the grid remember the fitlers, sort, and page. How can I achieve this?
Thanks,
3 Answers, 1 is accepted
0
Dimiter Madjarov
Telerik team
answered on 01 Jul 2014, 10:52 AM
Hi Alexandre,
Storing the Grid filter, sort, page etc. information is achievable, for example in a cookie, but I am not sure if detecting when a page is bookmarked is possible. According to the following thread, it it is not.
Let me know if this is the current case or I am missing something.
Regards,
Dimiter Madjarov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Persist the grid state in a cookie won't do in this case. The client want to be able to share the URL in email and still get the same filters, sorts, and paging when the grid is loaded.
0
Accepted
Dimiter Madjarov
Telerik team
answered on 02 Jul 2014, 12:45 PM
Hello Alexandre,
This could be achieved if the Grid is configured to use server binding. In this case the Grid performs GET requests and retrieves the filter, sort, paging etc. information from the query string in the URL.
Runnable example of server bound Grid could be found in the solution in your Kendo UI distribution package.
Regards,
Dimiter Madjarov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.