Grid Initial Filters - MVC - From Query String

4 posts, 0 answers
  1. Richard
    Richard avatar
    3 posts
    Member since:
    Nov 2016

    Posted 06 Dec 2016 Link to this post

    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
  2. Eyup
    Admin
    Eyup avatar
    4071 posts

    Posted 08 Dec 2016 Link to this post

    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.
  3. Richard
    Richard avatar
    3 posts
    Member since:
    Nov 2016

    Posted 08 Dec 2016 Link to this post

    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

  4. Eyup
    Admin
    Eyup avatar
    4071 posts

    Posted 12 Dec 2016 Link to this post

    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.
Back to Top