ClassSortDescriptor
Class
Represents declarative sorting.
Definition
Namespace:Telerik.DataSource
Assembly:Telerik.DataSource.dll
Syntax:
public class SortDescriptor : JsonObject
Inheritance: objectJsonObjectSortDescriptor
Derived Classes:
Inherited Members
Constructors
SortDescriptor()
Declaration
public SortDescriptor()
SortDescriptor(string, ListSortDirection)
Declaration
public SortDescriptor(string member, ListSortDirection order)
Parameters
member
order
Properties
Member
Gets or sets the member name (field) which will be used.
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
The sort direction. The default value is null.
Methods
Deserialize(string)
for internal use
Serialize(IDictionary<string, object>)
for internal use
Declaration
protected override void Serialize(IDictionary<string, object> json)
Parameters
json
Overrides