New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Represents declarative sorting.

Definition

Namespace:Kendo.Mvc

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class SortDescriptor : JsonObject, IDescriptor

Inheritance: objectJsonObjectSortDescriptor

Derived Classes: GroupDescriptor

Implements: IDescriptor

Inherited Members JsonObject.ToJson()object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public SortDescriptor()
C#
public SortDescriptor(string member, ListSortDirection order)
Parameters:memberstringorderListSortDirection

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; }
Property Value:

The sort direction. The default value is null.

Methods

C#
public void Deserialize(string source)
Parameters:sourcestring

Implements: IDescriptor.Deserialize(string)

C#
public string Serialize()
Returns:

string

Implements: IDescriptor.Serialize()

C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: JsonObject.Serialize(IDictionary<string, object>)