Class RadListSource<TDataItem>
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Data
Assembly: Telerik.WinControls.dll
Syntax
public class RadListSource<TDataItem> : IList<TDataItem>, ICollection<TDataItem>, IEnumerable<TDataItem>, IList, ICollection, IEnumerable, ITypedList, ICancelAddNew, INotifyCollectionChanged, INotifyPropertyChanged, ICurrencyManagerProvider, IDisposable where TDataItem : IDataItem
Type Parameters
TDataItem
|
Constructors
RadListSource()
Declaration
public RadListSource()
RadListSource(IDataItemSource)
RadListSource(IDataItemSource, RadCollectionView<TDataItem>)
Declaration
public RadListSource(IDataItemSource source, RadCollectionView<TDataItem> collectionView)
Parameters
IData
|
Rad
|
Properties
BoundProperties
Declaration
public PropertyDescriptorCollection BoundProperties { get; }
Property Value
System.
|
CollectionView
Gets the collection view.
Declaration
public RadCollectionView<TDataItem> CollectionView { get; }
Property Value
Rad The collection view. |
Count
Declaration
public int Count { get; }
Property Value
System.
|
Implements
CreateATransactionForEveryValueSetting
Gets or sets a value indicating whether each value setting should be encapsulaed in its own BeginEdit EndEditTransaction.
Declaration
public bool CreateATransactionForEveryValueSetting { get; set; }
Property Value
System.
|
Current
Gets the current.
Declaration
public TDataItem Current { get; }
Property Value
TData The current. |
DataMember
Gets or sets the name of the list or table in the data source for which the RadListSource<TDataItem> is bound.
Declaration
public string DataMember { get; set; }
Property Value
System.
|
DataSource
Gets or sets the data source of the RadListSource<TDataItem>.
Declaration
public object DataSource { get; set; }
Property Value
System.
|
IsDataBound
Gets a value indicating whether this instance is data bound.
Declaration
public bool IsDataBound { get; }
Property Value
System.
|
IsReadOnly
Gets a value indicating whether the System.Collections.Generic.ICollection<T> is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
System.
|
Implements
IsUpdating
Determines whether this instance is in a Begin/End update block.
Declaration
public bool IsUpdating { get; }
Property Value
System.
|
Item[Int32]
Gets or sets the item at the specified index.
Declaration
public TDataItem this[int index] { get; set; }
Parameters
System.
|
Property Value
TData
|
Implements
Items
Declaration
protected List<TDataItem> Items { get; set; }
Property Value
System.
|
Position
Gets or sets the position.
Declaration
public int Position { get; set; }
Property Value
System. The position. |
UseCaseSensitiveFieldNames
Declaration
public bool UseCaseSensitiveFieldNames { get; set; }
Property Value
System.
|
Methods
Add(TDataItem)
Adds an item to the System.Collections.Generic.ICollection<T>.
Declaration
public void Add(TDataItem item)
Parameters
TData The object to add to the System.Collections.Generic.ICollection<T>. |
Implements
Exceptions
System. The System.Collections.Generic.ICollection<T> is read-only. |
AddNew()
Adds the new.
Declaration
public virtual TDataItem AddNew()
Returns
TData
|
AddNew(TDataItem)
Adds the created item to ListSource.
Declaration
public virtual TDataItem AddNew(TDataItem item)
Parameters
TData
|
Returns
TData
|
AddUnboundInternal(TDataItem)
Used internally by the design time property editor.
Declaration
public void AddUnboundInternal(TDataItem item)
Parameters
TData
|
BeginUpdate()
Begins the update.
Declaration
public void BeginUpdate()
ChangeItem(Int32, TDataItem, String)
Declaration
protected virtual void ChangeItem(int index, TDataItem item, string propertyName)
Parameters
System.
|
TData
|
System.
|
Clear()
Removes all items from the System.Collections.Generic.ICollection<T>.
Declaration
public void Clear()
Implements
Exceptions
System. The System.Collections.Generic.ICollection<T> is read-only. |
ClearItems()
Declaration
protected virtual void ClearItems()
ClearItemsCore()
Declaration
protected virtual void ClearItemsCore()
Contains(TDataItem)
Determines whether the System.Collections.Generic.ICollection<T> contains a specific value.
Declaration
public bool Contains(TDataItem item)
Parameters
TData The object to locate in the System.Collections.Generic.ICollection<T>. |
Returns
System. true if |
Implements
CopyTo(TDataItem[], Int32)
Copies the elements of the System.Collections.Generic.ICollection<T> to an System.
Declaration
public void CopyTo(TDataItem[] array, int arrayIndex)
Parameters
TDataItem[]
array
The one-dimensional System. |
System. The zero-based index in |
Implements
Exceptions
System.
|
System.
|
System.
|
CreateDefaultCollectionView()
Declaration
protected virtual RadCollectionView<TDataItem> CreateDefaultCollectionView()
Returns
Rad
|
Dispose()
Declaration
public void Dispose()
Implements
EndUpdate()
Ends the update.
Declaration
public void EndUpdate()
EndUpdate(Boolean)
Ends the update.
Declaration
public void EndUpdate(bool notifyUpdates)
Parameters
System. if set to |
GetBoundValue(Object, String)
Declaration
public object GetBoundValue(object dataBoundItem, string propertyName)
Parameters
System.
|
System.
|
Returns
System.
|
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<TDataItem> GetEnumerator()
Returns
System. A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection. |
Implements
GetItemProperties(PropertyDescriptor[])
Returns the System.
Declaration
public PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[] listAccessors)
Parameters
System. An array of System. |
Returns
System. The System. |
GetListName(PropertyDescriptor[])
Returns the name of the list.
Declaration
public string GetListName(PropertyDescriptor[] listAccessors)
Parameters
System. An array of System. |
Returns
System. The name of the list. |
IndexOf(TDataItem)
Determines the index of a specific item in the System.Collections.Generic.IList<T>.
Declaration
public int IndexOf(TDataItem item)
Parameters
TData The object to locate in the System.Collections.Generic.IList<T>. |
Returns
System. The index of |
Implements
InitializeBoundRow(TDataItem, Object)
Declaration
protected virtual void InitializeBoundRow(TDataItem item, object dataBoundItem)
Parameters
TData
|
System.
|
Insert(Int32, TDataItem)
Inserts an item to the System.Collections.Generic.IList<T> at the specified index.
Declaration
public void Insert(int index, TDataItem item)
Parameters
System. The zero-based index at which |
TData The object to insert into the System.Collections.Generic.IList<T>. |
Implements
Exceptions
System.
|
System. The System.Collections.Generic.IList<T> is read-only. |
InsertItem(Int32, TDataItem)
Declaration
protected virtual void InsertItem(int index, TDataItem item)
Parameters
System.
|
TData
|
Move(Int32, Int32)
Moves the specified item.
Declaration
public void Move(int oldIndex, int newIndex)
Parameters
System. The old index. |
System. The new index. |
MoveItem(Int32, Int32)
Declaration
protected virtual void MoveItem(int oldIndex, int newIndex)
Parameters
System.
|
System.
|
NotifyItemChanged(TDataItem)
Raises a CollectionChanged notification with action ItemChanged. Must be paired with the NotifyItemChanging method.
Declaration
public void NotifyItemChanged(TDataItem item)
Parameters
TData
|
NotifyItemChanged(TDataItem, String)
Raises a CollectionChanged notification with action ItemChanged. Must be paired with the NotifyItemChanging method.
Declaration
public void NotifyItemChanged(TDataItem item, string propertyName)
Parameters
TData
|
System.
|
NotifyItemChanging(TDataItem)
Raises a CollectionChanged notification with action ItemChanging. Must be paired with the NotifyItemChanged method.
Declaration
public void NotifyItemChanging(TDataItem item)
Parameters
TData
|
NotifyItemChanging(TDataItem, String)
Raises a CollectionChanged notification with action ItemChanging. Must be paired with the NotifyItemChanged method.
Declaration
public void NotifyItemChanging(TDataItem item, string propertyName)
Parameters
TData
|
System.
|
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Declaration
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the NotifyPropertyChanged event
Declaration
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.
|
OnNotifyPropertyChanged(String)
Raises the PropertyChanged event
Declaration
protected virtual void OnNotifyPropertyChanged(string propertyName)
Parameters
System. The name of the property |
ProcessCurrencyManagerListChanged(Object, ListChangedEventArgs)
Declaration
protected virtual void ProcessCurrencyManagerListChanged(object sender, ListChangedEventArgs e)
Parameters
System.
|
System.
|
Refresh()
Refreshes this instance.
Declaration
public virtual void Refresh()
Remove(TDataItem)
Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection<T>.
Declaration
public bool Remove(TDataItem item)
Parameters
TData The object to remove from the System.Collections.Generic.ICollection<T>. |
Returns
System. true if |
Implements
Exceptions
System. The System.Collections.Generic.ICollection<T> is read-only. |
RemoveAt(Int32)
Removes the System.Collections.Generic.IList<T> item at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
System. The zero-based index of the item to remove. |
Implements
Exceptions
System.
|
System. The System.Collections.Generic.IList<T> is read-only. |
RemoveItem(Int32)
Declaration
protected virtual void RemoveItem(int index)
Parameters
System.
|
Reset()
Resets this instance.
Declaration
public virtual void Reset()
SetBoundValue(IDataItem, String, Object)
Declaration
public bool SetBoundValue(IDataItem dataItem, string propertyName, object value)
Parameters
IData
|
System.
|
System.
|
Returns
System.
|
SetBoundValue(IDataItem, String, Object, String)
Declaration
public bool SetBoundValue(IDataItem dataItem, string propertyName, object value, string path)
Parameters
IData
|
System.
|
System.
|
System.
|
Returns
System.
|
SetBoundValue(IDataItem, String, String, Object, String)
Declaration
public bool SetBoundValue(IDataItem dataItem, string propertyName, string columnName, object value, string path)
Parameters
IData
|
System.
|
System.
|
System.
|
System.
|
Returns
System.
|
SetItem(Int32, TDataItem)
Declaration
protected virtual void SetItem(int index, TDataItem item)
Parameters
System.
|
TData
|
UnWireEvents()
Declaration
protected virtual void UnWireEvents()
WireEvents()
Declaration
protected virtual void WireEvents()
Events
CollectionChanged
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Implements
PositionChanged
Declaration
public event EventHandler PositionChanged
Event Type
System.
|
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.
|
Explicit Interface Implementations
ICollection.CopyTo(Array, Int32)
Declaration
void ICollection.CopyTo(Array array, int index)
Parameters
System.
|
System.
|
Implements
ICollection.IsSynchronized
Declaration
bool ICollection.IsSynchronized { get; }
Returns
System.
|
Implements
ICollection.SyncRoot
Declaration
object ICollection.SyncRoot { get; }
Returns
System.
|
Implements
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.
|
Implements
IList.Add(Object)
Declaration
int IList.Add(object value)
Parameters
System.
|
Returns
System.
|
Implements
IList.Contains(Object)
Declaration
bool IList.Contains(object value)
Parameters
System.
|
Returns
System.
|
Implements
IList.get_Item(Int32)
Declaration
object IList.get_Item(int index)
Parameters
System.
|
Returns
System.
|
Implements
IList.IndexOf(Object)
Declaration
int IList.IndexOf(object value)
Parameters
System.
|
Returns
System.
|
Implements
IList.Insert(Int32, Object)
Declaration
void IList.Insert(int index, object value)
Parameters
System.
|
System.
|
Implements
IList.IsFixedSize
Declaration
bool IList.IsFixedSize { get; }
Returns
System.
|
Implements
IList.Item[Int32]
Declaration
object IList.this[] { get; set; }
Parameters
System.
|
Returns
System.
|
Implements
IList.Remove(Object)
Declaration
void IList.Remove(object value)
Parameters
System.
|
Implements
IList.set_Item(Int32, Object)
Declaration
void IList.set_Item(int index, object value)
Parameters
System.
|
System.
|