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