Class
RadSortExpressionCollection

Represents a collection of GridSortField objects.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
[ListBindable(BindableSupport.No)]
public class RadSortExpressionCollection : GridViewSortDescriptorCollection, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, INotifyCollectionChanging

Inheritance: objectCollection<SortDescriptor>NotifyCollection<SortDescriptor>SortDescriptorCollectionGridViewSortDescriptorCollectionRadSortExpressionCollection

Implements: ICollectionIEnumerableIListINotifyCollectionChangedINotifyCollectionChangingINotifyPropertyChanged

Inherited Members GridViewSortDescriptorCollection.InsertItem(int, SortDescriptor)GridViewSortDescriptorCollection.SetItem(int, SortDescriptor)GridViewSortDescriptorCollection.MoveItem(int, int)GridViewSortDescriptorCollection.RemoveItem(int)GridViewSortDescriptorCollection.ClearItems()GridViewSortDescriptorCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs)GridViewSortDescriptorCollection.OnCollectionChanging(NotifyCollectionChangingEventArgs)GridViewSortDescriptorCollection.CollectionChangingSortDescriptorCollection.Add(string, ListSortDirection)SortDescriptorCollection.Contains(string)SortDescriptorCollection.IndexOf(string)SortDescriptorCollection.ToString()SortDescriptorCollection.Remove(string)SortDescriptorCollection.CreateEventArguments(NotifyCollectionChangedAction, object, int)SortDescriptorCollection.CreateEventArguments(NotifyCollectionChangedAction, object, object, int)SortDescriptorCollection.UseCaseSensitiveFieldNamesSortDescriptorCollection.ExpressionNotifyCollection<SortDescriptor>.EmptyNotifyCollection<SortDescriptor>.Move(int, int)NotifyCollection<SortDescriptor>.AddRange(params SortDescriptor[])NotifyCollection<SortDescriptor>.AddRange(IEnumerable<SortDescriptor>)NotifyCollection<SortDescriptor>.BeginUpdate()NotifyCollection<SortDescriptor>.EndUpdate()NotifyCollection<SortDescriptor>.EndUpdate(bool)NotifyCollection<SortDescriptor>.DeferRefresh()NotifyCollection<SortDescriptor>.CreateEventArguments(NotifyCollectionChangedAction)NotifyCollection<SortDescriptor>.OnPropertyChanged(PropertyChangedEventArgs)NotifyCollection<SortDescriptor>.OnPropertyChanged(string)NotifyCollection<SortDescriptor>.VersionNotifyCollection<SortDescriptor>.SuspendedNotifyCollection<SortDescriptor>.CollectionChangedNotifyCollection<SortDescriptor>.PropertyChangedCollection<SortDescriptor>.Add(SortDescriptor)Collection<SortDescriptor>.Clear()Collection<SortDescriptor>.CopyTo(SortDescriptor[], int)Collection<SortDescriptor>.Contains(SortDescriptor)Collection<SortDescriptor>.GetEnumerator()Collection<SortDescriptor>.IndexOf(SortDescriptor)Collection<SortDescriptor>.Insert(int, SortDescriptor)Collection<SortDescriptor>.Remove(SortDescriptor)Collection<SortDescriptor>.RemoveAt(int)Collection<SortDescriptor>.CountCollection<SortDescriptor>.ItemsCollection<SortDescriptor>.this[int]

Constructors

RadSortExpressionCollection(GridViewTemplate)

Initializes a new instance of the RadSortExpressionCollection class.

Declaration

cs-api-definition
public RadSortExpressionCollection(GridViewTemplate owner)

Parameters

owner

GridViewTemplate

The owner.

Methods

Add(string)

Adds the specified sort expression.

Declaration

cs-api-definition
public void Add(string expression)

Parameters

expression

string

The expression.

Add(string, RadSortOrder)

Adds the specified field name.

Declaration

cs-api-definition
public void Add(string fieldName, RadSortOrder sortOrder)

Parameters

fieldName

string

Name of the field.

sortOrder

RadSortOrder

The sort order.

GetDescriptor<T>(int)

Gets the descriptor.

Declaration

cs-api-definition
public T GetDescriptor<T>(int index) where T : SortDescriptor

Parameters

index

int

The index.

Returns

T