Class
ItemObservableCollection<T>

Extends ObservableCollection<T> to listen to Items' PropertyChanged and CollectionChanged events.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Type Parameters:

T

Syntax:

cs-api-definition
public class ItemObservableCollection<T> : ObservableCollection<T>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyCollectionChanging, INotifyPropertyChanged, INotifyPropertyChangingEx where T : class, INotifyPropertyChangingEx, INotifyPropertyChanged

Inheritance: objectCollection<T>ObservableCollection<T>ItemObservableCollection<T>

Derived Classes: ColumnGroupRowCollectionConditionalFormattingObjectCollection

Implements: ICollectionIEnumerableIListINotifyCollectionChangedINotifyCollectionChangingINotifyPropertyChangedINotifyPropertyChangingEx

Inherited Members ObservableCollection<T>.CountStringObservableCollection<T>.ItemArrayStringObservableCollection<T>.InsertItem(int, T, Action<T>)ObservableCollection<T>.Move(int, int)ObservableCollection<T>.MoveItem(int, int)ObservableCollection<T>.BeginUpdate()ObservableCollection<T>.BeginItemUpdate()ObservableCollection<T>.EndItemUpdate()ObservableCollection<T>.EndItemUpdate(bool)ObservableCollection<T>.EndUpdate(bool)ObservableCollection<T>.EndUpdate()ObservableCollection<T>.OnCollectionChanged(NotifyCollectionChangedEventArgs)ObservableCollection<T>.NotifyListenersCollectionChanged(NotifyCollectionChangedEventArgs)ObservableCollection<T>.CallCollectionChanged(object, NotifyCollectionChangedEventArgs)ObservableCollection<T>.OnCollectionChanging(NotifyCollectionChangingEventArgs)ObservableCollection<T>.NotifyListenersCollectionChanging(NotifyCollectionChangingEventArgs)ObservableCollection<T>.CallCollectionChanging(object, NotifyCollectionChangingEventArgs)ObservableCollection<T>.AddRange(IEnumerable<T>)ObservableCollection<T>.RemoveRange(IEnumerable<T>)ObservableCollection<T>.OnCollectionChanged(NotifyCollectionChangedAction, object, int)ObservableCollection<T>.OnCollectionChanged(NotifyCollectionChangedAction, object, int, int)ObservableCollection<T>.OnCollectionChanged(NotifyCollectionChangedAction, object, object, int)ObservableCollection<T>.OnCollectionReset(IList)ObservableCollection<T>.OnCollectionChanging(NotifyCollectionChangedAction, object, int)ObservableCollection<T>.OnCollectionChanging(NotifyCollectionChangedAction, object, int, int)ObservableCollection<T>.OnCollectionChanging(NotifyCollectionChangedAction, object, object, int)ObservableCollection<T>.OnCollectionReseting()ObservableCollection<T>.OnNotifyPropertyChanged(string)ObservableCollection<T>.OnNotifyPropertyChanged(PropertyChangedEventArgs)ObservableCollection<T>.OnNotifyPropertyChanging(string)ObservableCollection<T>.OnNotifyPropertyChanging(PropertyChangingEventArgsEx)ObservableCollection<T>.IsUpdatedObservableCollection<T>.CollectionChangedObservableCollection<T>.CollectionChangingObservableCollection<T>.PropertyChangedObservableCollection<T>.PropertyChangingCollection<T>.Add(T)Collection<T>.Clear()Collection<T>.CopyTo(T[], int)Collection<T>.Contains(T)Collection<T>.GetEnumerator()Collection<T>.IndexOf(T)Collection<T>.Insert(int, T)Collection<T>.Remove(T)Collection<T>.RemoveAt(int)Collection<T>.CountCollection<T>.ItemsCollection<T>.this[int]

Constructors

ItemObservableCollection()

Declaration

cs-api-definition
public ItemObservableCollection()

ItemObservableCollection(IList<T>)

Declaration

cs-api-definition
public ItemObservableCollection(IList<T> list)

Parameters

list

IList<T>

Methods

ClearItems()

Overridden. Removes all items from the collection.

Declaration

cs-api-definition
protected override void ClearItems()

Overrides ObservableCollection<T>.ClearItems()

InsertItem(int, T)

Overridden. Inserts an item into the collection at the specified index.

Declaration

cs-api-definition
protected override void InsertItem(int index, T item)

Parameters

index

int

item

T

Overrides ObservableCollection<T>.InsertItem(int, T)

ItemEventsSubscribe(T)

Declaration

cs-api-definition
protected virtual void ItemEventsSubscribe(T item)

Parameters

item

T

ItemEventsUnsubscribe(T)

Declaration

cs-api-definition
protected virtual void ItemEventsUnsubscribe(T item)

Parameters

item

T

OnItemPropertyChanged(object, EventArgs)

Declaration

cs-api-definition
protected virtual void OnItemPropertyChanged(object sender, EventArgs e)

Parameters

sender

object

e

EventArgs

OnItemPropertyChanging(object, CancelEventArgs)

Declaration

cs-api-definition
protected virtual void OnItemPropertyChanging(object sender, CancelEventArgs e)

Parameters

sender

object

e

CancelEventArgs

RemoveItem(int)

Overridden. Removes the item at the specified index of the collection.

Declaration

cs-api-definition
protected override void RemoveItem(int index)

Parameters

index

int

Overrides ObservableCollection<T>.RemoveItem(int)

SetItem(int, T)

Overridden. Replaces the element at the specified index.

Declaration

cs-api-definition
protected override void SetItem(int index, T item)

Parameters

index

int

item

T

Overrides ObservableCollection<T>.SetItem(int, T)