SortDescriptor
Class
Represents declarative sorting.
Definition
Namespace:Kendo.Mvc
Assembly:Kendo.Mvc.dll
Syntax:
C#
public class SortDescriptor : JsonObject, IDescriptor
Inheritance: objectJsonObjectSortDescriptor
Derived Classes:
Implements:
Inherited Members
Constructors
C#
public SortDescriptor()
C#
public SortDescriptor(string member, ListSortDirection order)
Properties
Gets or sets the member name which will be used for sorting.
C#
public string Member { get; set; }
Gets or sets the sort compare for this sort descriptor.
C#
public ClientHandlerDescriptor SortCompare { get; set; }
Gets or sets the sort direction for this sort descriptor. If the value is null no sorting will be applied.
C#
public ListSortDirection SortDirection { get; set; }
The sort direction. The default value is null.
Methods
C#
protected override void Serialize(IDictionary<string, object> json)
Overrides: