-
Notifications
You must be signed in to change notification settings - Fork 804
Grid Defining a Sort Order.
Victor Tomaili edited this page May 3, 2021
·
1 revision
Try this in your xtzColumns.cs for the given columns:
[SortOrder(1, descending: true)] public DateTime TimeStamp { get; set; }
Note: The Integer 1 here is for hierarchy of sorting by Multiple Columns.
Next you must make sure that sorting is not being handled client side in your xyzGrid.ts file by code similar to this example : getDefaultSortBy().
The Northwind OrderColumn.cs file has an example to look into.
Info on this page was taken from: Issue 1393
Information for custom handling can be found here: Custom List Ordering
Copyright © Serenity Platform 2017-present. All rights reserved.
Documentation | Serene Template | Live Demo | Premium Support | Issues | Discussions