Setting a grid view's sort property (but not actually sorting)

2 posts, 0 answers
  1. Michael
    Michael avatar
    9 posts
    Member since:
    Aug 2013

    Posted 24 Aug 2016 Link to this post


    I have an MVC grid view and I'm setting the current sort value of the grid programatically (similar to I don't wish to actually sort the grid at the time I set the sort so I'm doing something like this 

    var grid = $("#ServiceAuth").data('kendoGrid');
    grid.dataSource.options.sort = [{ field: "AuthType", dir: "asc" }];

    and then when I do actually want to sort the grid:


    Data-wise this sorts the grid correctly, however the new sort isn't reflected on the indicators at the top of the grid. Is there a way to do this so the grid reflects the data sources sort property?

    Thanks in advance for your help





  2. Daniel
    Daniel avatar
    2220 posts

    Posted 26 Aug 2016 Link to this post


    The sort direction seems to be correctly reflected when I tested the scenario at least on my side. Could you check this example and let me know if I am missing something?

    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top