Class
SortDescriptor

Represents declarative sorting.

Definition

Namespace:Telerik.DataSource

Assembly:Telerik.DataSource.dll

Syntax:

cs-api-definition
public class SortDescriptor : JsonObject

Inheritance: objectJsonObjectSortDescriptor

Derived Classes: GroupDescriptor

Inherited Members JsonObject.ToJson()

Constructors

SortDescriptor()

Declaration

cs-api-definition
public SortDescriptor()

SortDescriptor(string, ListSortDirection)

Declaration

cs-api-definition
public SortDescriptor(string member, ListSortDirection order)

Parameters

member

string

order

ListSortDirection

Properties

Member

Gets or sets the member name (field) which will be used.

Declaration

cs-api-definition
public string Member { get; set; }

Property Value

string

SortCompare

Gets or sets the sort compare for this sort descriptor. Applicable only for jQuery-based widgets such as UI for ASP.NET MVC.

Declaration

cs-api-definition
[JsonIgnore]
public ClientHandlerDescriptor SortCompare { get; set; }

Property Value

ClientHandlerDescriptor

SortDirection

Gets or sets the sort direction for this sort descriptor. If the value is null no sorting will be applied.

Declaration

cs-api-definition
public ListSortDirection SortDirection { get; set; }

Property Value

ListSortDirection

The sort direction. The default value is null.

Methods

Deserialize(string)

for internal use

Declaration

cs-api-definition
public void Deserialize(string source)

Parameters

source

string

Serialize()

for internal use

Declaration

cs-api-definition
public string Serialize()

Returns

string

Serialize(IDictionary<string, object>)

for internal use

Declaration

cs-api-definition
protected override void Serialize(IDictionary<string, object> json)

Parameters

json

IDictionary<string, object>

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