Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadListDataItemSelectedCollection : ObservableCollection<RadListDataItem>, IList, ICollection, INotifyCollectionChanged, INotifyCollectionChanging, INotifyPropertyChanged, INotifyPropertyChangingEx, IReadOnlyCollection<RadListDataItem>, IEnumerable
Inheritance: objectCollection<RadListDataItem>ObservableCollection<RadListDataItem>RadListDataItemSelectedCollection
Implements:
Inherited Members
Constructors
Initializes the selection collection for the specified list element.
public RadListDataItemSelectedCollection(RadListElement owner)
The list element whose selected items this collection tracks.
Exceptions: ArgumentExceptionowner is null.
Properties
Gets whether the collection is currently processing a clear and suppressing recursive clears.
public bool Clearing { get; }
Gets whether the collection is currently processing an insertion and suppressing recursive insertions.
public bool Inserting { get; }
Methods
Clears the collection and resets selected and active state on items that still belong to a list. Recursive clearing during removal or clearing is ignored.
protected override void ClearItems()
Overrides:
Adds an item and marks it selected and active. Insertion is ignored while another insertion is in progress.
protected override void InsertItem(int index, RadListDataItem item)
The insertion index.
itemRadListDataItemThe item to select.
Exceptions: InvalidOperationExceptionThe owning list has None.
Overrides:
If None causes this method to throw, the current implementation leaves Inserting set to true, so later insertion attempts are ignored.
Removes an item and clears its selected and active states when it still belongs to a list. Recursive removal during removal or clearing is ignored.
protected override void RemoveItem(int index)
The index of the selected item to remove.
Overrides:
Replacing an entry is unsupported because selection state is synchronized through insertion and removal.
protected override void SetItem(int index, RadListDataItem item)
The index of the entry to replace.
itemRadListDataItemThe replacement item.
Exceptions: InvalidOperationExceptionThis collection does not support replacing entries.
Overrides: