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

A collection of PivotGridSortExpression objects.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[SuppressMessage("Microsoft.Design", "CA1010:CollectionsShouldImplementGenericInterface")]
[TypeConverter(typeof(ExpandableObjectConverter))]
public class PivotGridSortExpressionCollection : IList, ICollection, IEnumerable, IStateManager

Inheritance: objectPivotGridSortExpressionCollection

Implements: ICollectionIEnumerableIListIStateManager

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

Properties

Returns the number of items in the RadPivotGridSortExpressionCollection.

C#
[Browsable(false)]
public int Count { get; }

Implements: ICollection.Count

Gets a value indicating whether access to the RadPivotGridSortExpressionCollection is synchronized (thread safe).

C#
[Browsable(false)]
public bool IsSynchronized { get; }

Implements: ICollection.IsSynchronized

Gets an object that can be used to synchronize access to the RadPivotGridSortExpressionCollection.
C#
[Browsable(false)]
public object SyncRoot { get; }

Implements: ICollection.SyncRoot

This is the default indexer of the collection - takes an integer value.

C#
public PivotGridSortExpression this[int index] { get; set; }
Parameters:indexint

Methods

Adds a PivotGridSortExpression to the collection.

C#
public int Add(object value)
Parameters:valueobjectReturns:

int

Implements: IList.Add(object)

Adds a PivotGridSortExpression to the collection at the specified index.

C#
public void AddAt(int index, PivotGridSortExpression sortExpression)
Parameters:indexintsortExpressionPivotGridSortExpression

Adds the sortExpression in the collection.

C#
public void AddSortExpression(PivotGridSortExpression sortExpression)
Parameters:sortExpressionPivotGridSortExpression

Adds the sortExpression in the collection.

C#
public void AddSortExpression(string expression)
Parameters:expressionstring

String containing sort field and optionaly sort order (ASC or DESC)

Adds the sort field (expression parameter) if the collection does not alreqady contain the field. Else the sort order of the field will be inverted. The default change order is Asc -> Desc.

C#
public void ChangeSortOrder(string expression, bool AllowNaturalSort = false)
Parameters:expressionstringAllowNaturalSortbool

Parameter that indicates whether natural sorting is enabled.

Clears the RadPivotGridSortExpressionCollection of all items.

C#
public void Clear()

Implements: IList.Clear()

Returns true or false depending on whether the specified sorting expression exists in the collection. Takes a string parameter.

C#
public bool ContainsExpression(string expression)
Parameters:expressionstringReturns:

bool

Returns true or false depending on whether the specified sorting expression exists in the collection. Takes a PivotGridSortExpression parameter.

C#
public bool ContainsSortExpression(PivotGridSortExpression sortExpression)
Parameters:sortExpressionPivotGridSortExpressionReturns:

bool

Returns an enumerator that iterates through the RadPivotGridSortExpressionCollection.

C#
public IEnumerator GetEnumerator()
Returns:

IEnumerator

Implements: IEnumerable.GetEnumerator()

Find a SortExpression in the collection if it contains any with sort field = expression

C#
public PivotGridSortExpression GetExpression(string expression)
Parameters:expressionstring

sort field

Returns:

PivotGridSortExpression

Get a comma separated list of sort fields and sort-order, in the same format used by DataView.Sort string expression. Returns null (Nothing) if there are no sort expressions in the collection

C#
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public string GetSortString()
Returns:

string

Comma separated list of sort fields and optionaly sort-order, null if there are no sort expressions in the collection

Searches for the specified PivotGridSortExpression and returns the zero-based index of the first occurrence within the entire PivotGridSortExpressionCollection.

C#
public int IndexOf(PivotGridSortExpression viewSortExpression)
Parameters:viewSortExpressionPivotGridSortExpressionReturns:

int

Removes the specified PivotGridSortExpression from the collection.

C#
public void RemoveSortExpression(PivotGridSortExpression sortExpression)
Parameters:sortExpressionPivotGridSortExpression