GridSortExpression
Class that is used to define sort field and sort order for RadGrid
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class GridSortExpression : IStateManager
Inheritance: objectGridSortExpression
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridSortExpression class.
public GridSortExpression()
Properties
Gets or sets the name of the field to which sorting is applied.
public string FieldName { get; set; }
Sets or gets the current sorting order.
public GridSortOrder SortOrder { get; set; }
Methods
Returns a hash code for the current GridSortExpression.
Parses a string representation of the sort order and returns GirdSortExpression.
Sets the sort order.
The SortOrder paremeter should be either "Ascending", "Descending" or "None".
This method gives the string representation of the sorting order. It can be either "ASC" or "DESC"
This method gives the string representation of the sorting order. It can be either "ASC" or "DESC"
public static string SortOrderAsString(GridSortOrder sortOrder)
Returns a GridSortOrder enumeration based on the string input. Takes either "ASC" or "DESC"
public static GridSortOrder SortOrderFromString(string sortOrder)
Returns a string that represents the current GridSortExpression.