Class
SortDescriptor

Represents declarative sorting.

Definition

Namespace:Telerik.DataSource

Assembly:Telerik.DataSource.dll

Syntax:

public class SortDescriptor : JsonObject

Inheritance: objectJsonObjectSortDescriptor

Derived Classes: GroupDescriptor

Inherited Members JsonObject.ToJson()

Constructors

SortDescriptor()

Declaration

public SortDescriptor()

SortDescriptor(string, ListSortDirection)

Declaration

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

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

[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

public ListSortDirection SortDirection { get; set; }

Property Value

ListSortDirection

The sort direction. The default value is null.

Methods

Deserialize(string)

for internal use

Declaration

public void Deserialize(string source)

Parameters

source

string

Serialize()

for internal use

Declaration

public string Serialize()

Returns

string

Serialize(IDictionary<string, object>)

for internal use

Declaration

protected override void Serialize(IDictionary<string, object> json)

Parameters

json

IDictionary<string, object>

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