New to Telerik UI for BlazorStart a free 30-day trial

Represents declarative sorting.

Definition

Namespace:Telerik.DataSource

Assembly:Telerik.DataSource.dll

Syntax:

C#
public class SortDescriptor : JsonObject

Inheritance: objectJsonObjectSortDescriptor

Derived Classes: GroupDescriptor

Inherited Members JsonObject.ToJson()

Constructors

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

Methods

for internal use

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

for internal use

C#
public string Serialize()
Returns:

string

for internal use

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

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

Properties

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

C#
public string Member { get; set; }

SortCompare

ClientHandlerDescriptor

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

C#
[JsonIgnore]
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.