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

Syncronize Url Hash with Grid Sorting & Filtering Selections

1 Answer 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 31 Jul 2014, 05:14 PM
Hi, 

 Is there a method of the Grid (MVC or html) that would generate a url hash representing the current sorting & filtering selections?

Something like '#gridoptions=(sort:column1.desc,column3.desc+filter=state:CA)"

Likewise is there a method that can consume this string back again so that the next async load represents the selections in the hash string?

A demo with Angular or Sammy would be great too, if one exists.

It would be useful to have this in order to
* preserve sorting & filtering on page refreshes
* allow users to book mark a page with a specific sort & filter 
* persist this information in a store for retrieval later for metrics or user history features

Thanks!


1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 04 Aug 2014, 12:09 PM
Hello Philip,

Hashes are not supported but it is possible to use a query string parameters as demonstrated in this code-library project.

Regards,
Daniel
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
Philip
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or