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

Persistance grid paging, sorts, and filters

3 Answers 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 30 Jun 2014, 03:04 PM
Hi,

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

Sort by
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.

 
0
Alexandre
Top achievements
Rank 1
answered on 02 Jul 2014, 11:59 AM
Hi,

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.

 
Tags
Grid
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Alexandre
Top achievements
Rank 1
Share this question
or