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

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

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public class PivotGridSortExpression : IStateManager

Inheritance: objectPivotGridSortExpression

Implements: IStateManager

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Properties

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

C#
public string FieldName { get; set; }

Sets or gets the current sorting order.

C#
public PivotGridSortOrder SortOrder { get; set; }

Methods

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

C#
public static PivotGridSortExpression Parse(string expression)
Parameters:expressionstringReturns:

PivotGridSortExpression

Sets the sort order.

The SortOrder paremeter should be either "Ascending" or "Descending".

C#
public void SetSortOrder(string SortOrder)
Parameters:SortOrderstringExceptions: ArgumentException

ArgumentException.

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

C#
public string SortOrderAsString()
Returns:

string

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

C#
public static string SortOrderAsString(PivotGridSortOrder sortOrder)
Parameters:sortOrderPivotGridSortOrderReturns:

string

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

C#
[SuppressMessage("Microsoft.Globalization", "CA1304:SpecifyCultureInfo", MessageId = "System.String.ToUpper")]
public static PivotGridSortOrder SortOrderFromString(string sortOrder)
Parameters:sortOrderstringReturns:

PivotGridSortOrder