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

Grid Initial Filters - MVC - From Query String

3 Answers 164 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 06 Dec 2016, 04:18 PM
I'm looking to pass some initial filters to the grid via the query string in the URL.
I know this is possible as I can do things like.... ?grid-page=5, ?grid-sort=Price-desc.
This is fine but I cannot find any documentation that lists all of the available filters, sorting and paging etc...
For example, the things I want to do with filtering are more complex, like - price less than 20 and price greater than 5.
How can I achieve what I'm looking for and where is the documentation?
I'm sure this can be done... ?
Thanks

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 08 Dec 2016, 01:19 PM
Hi Richard,

Perhaps, you are looking for something similar to this:
https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/e080c4fed1d76811938be94033ec538635cc866a/grid/grid-save-state-with-url-browser-history-api

Regards,
Eyup
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
0
Richard
Top achievements
Rank 1
answered on 08 Dec 2016, 02:43 PM

Hi Eyup,

I can't find anything in the link that helps me really. Basically I have a basic Grid using MVC and if I pass things in the querystring such as - grid-page=5 or grid-sort=Price-desc then the grid by default filters down as expected. Therefore there is some functionality built into the Telerik Grid by default I would assume?

Therefore, I am looking for a list of different things you can pass, by default in the querystring to filter/sort/page the grid.

Thanks

Richard

0
Eyup
Telerik team
answered on 12 Dec 2016, 06:05 AM
Hello Richard,

I've already replied to your query in your formal support ticket with ID: 1078137. I suggest that we continue our conversation on the mentioned thread.

Regards,
Eyup
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Richard
Top achievements
Rank 1
Share this question
or