Class SortDescriptor
Represents declarative sorting.
Inherited Members
Namespace: Telerik.DataSource
Assembly: Telerik.DataSource.dll
Syntax
public class SortDescriptor : JsonObject, IDescriptor
Constructors
SortDescriptor()
Declaration
public SortDescriptor()
SortDescriptor(String, ListSortDirection)
Declaration
public SortDescriptor(string member, ListSortDirection order)
Parameters
System.String
member
|
ListSortDirection
order
|
Properties
Member
Gets or sets the member name (field) which will be used.
Declaration
public string Member { get; set; }
Property Value
System.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
public ClientHandlerDescriptor SortCompare { get; set; }
Property Value
Telerik.DataSource.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
System.String
source
|
Serialize()
for internal use
Declaration
public string Serialize()
Returns
System.String
|
Serialize(IDictionary<String, Object>)
for internal use
Declaration
protected override void Serialize(IDictionary<string, object> json)
Parameters
System.Collections.Generic.IDictionary<System.String, System.Object>
json
|