Class that is used to define sort field and sort order for RadTreeList
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class TreeListSortExpression : IStateManager
Inheritance: objectTreeListSortExpression
Implements:
Inherited Members
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 TreeListSortOrder SortOrder { get; set; }
Methods
Parses a string representation of the sort order and returns RadTreeListSortExpression.
public static TreeListSortExpression Parse(string expression)
Sets the sort order.
The SortOrder paremeter should be either "Ascending", "Descending" or "None".
public void SetSortOrder(string SortOrder)
ArgumentException.
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(TreeListSortOrder sortOrder)
Returns a TreeListSortOrder enumeration based on the string input. Takes either "ASC" or "DESC"
[SuppressMessage("Microsoft.Globalization", "CA1304:SpecifyCultureInfo", MessageId = "System.String.ToUpper")]
public static TreeListSortOrder SortOrderFromString(string sortOrder)