New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Telerik.Web.UI.GridSortExpression

Class that is used to define sort field and sort order for RadGrid

Inheritance Hierarchy

  • System.Object
  • Telerik.Web.UI.GridSortExpression : IStateManager

Properties

FieldName String

Gets or sets the name of the field to which sorting is applied.

SortOrder GridSortOrder

Sets or gets the current sorting order.

Methods

Parse

Parses a string representation of the sort order and returns GirdSortExpression.

Returns

Telerik.Web.UI.GridSortExpression

SetSortOrder

Sets the sort order.The SortOrder paremeter should be either "Ascending", "Descending" or "None".

Returns

System.Void

SortOrderAsString

This method gives the string representation of the sorting order. It can be either "ASC" or "DESC"

Returns

System.String

SortOrderAsString

This method gives the string representation of the sorting order. It can be either "ASC" or "DESC"

Returns

System.String

SortOrderFromString

Returns a GridSortOrder enumeration based on the string input. Takes either "ASC" or "DESC"

Returns

Telerik.Web.UI.GridSortOrder

In this article