Server Side sort by column value equaling specified value

2 posts, 0 answers
  1. Nathan
    Nathan avatar
    1 posts
    Member since:
    Jul 2015

    Posted 17 Jun 2016 Link to this post



    I'm trying to implement a kendo grid with server side sorting and filtering. I want to be able to sort using the DataSourceRequest.Sort object by more than just the member type and sort direction.


    I essentially want the equivalent of the following IEnumerable OrderBy Method


    queryList.OrderBy(x => x.SomeMember == SomeConstantValue)


    Is there a way to do this by using the SortDescriptor Object?


    Any help would be appreciated

  2. Danail Vasilev
    Danail Vasilev avatar
    1502 posts

    Posted 21 Jun 2016 Link to this post

    Hello Nathan,

    Generally, the SortDescriptor object has two base getters/setters (i.e., Member and SortDirection) as well as two methods (i.e., serialize and deserialize). You can check that in the code as well as in the Kendo UI ASP.NET MVC API - Kendo.Mvc.SortDescriptor

    If you want to implement a custom grid binding I would suggest that you examine this article - . You may also find fully runnable samples of custom ajax/server binding in the Kendo UI ASP.NET MVC offline demos which can be downloaded from your account.

    Danail Vasilev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top