Interface IBindingProvider<T>
Base interface for providers.
Namespace: Telerik.WinControls.UI.Data
Assembly: Telerik.WinControls.UI.dll
Syntax
public interface IBindingProvider<T>
where T : IDataBoundItem
Type Parameters
T
The type used to specialize the provider implementation. |
Properties
Position
Gets or sets the current position in the list of data items.
Declaration
int Position { get; set; }
Property Value
System.Int32
|
PropertyMappings
Gets or sets a data store mapping to the provider.
Declaration
IPropertyMappingInfo PropertyMappings { get; set; }
Property Value
IPropertyMappingInfo
|
Methods
Delete(T)
Removes the first occurrence of a specific item from the data store.
Declaration
void Delete(T itemToDelete)
Parameters
T
itemToDelete
The item of type T to delete. |
GetItems(Predicate<T>)
Gets IEnumerable<T> for items that match the conditions defined by the specified predicate.
Declaration
IEnumerable<T> GetItems(Predicate<T> filterFunction)
Parameters
System.Predicate<T>
filterFunction
The Predicate<T> delegate that defines the conditions of the item to search for. |
Returns
System.Collections.Generic.IEnumerable<T>
IEnumerable<T> for items that match the conditions defined by the specified predicate, if found; |
Insert(T)
Inserts an item of type T.
Declaration
void Insert(T itemToInsert)
Parameters
T
itemToInsert
The item of type T to insert. |
Update(T, String)
Updates he first occurrence of a specific item in the data store.
Declaration
void Update(T itemToUpdate, string propertyName)
Parameters
T
itemToUpdate
The item of type T to update. |
System.String
propertyName
Name of the property which value changed. Null or an empty string if all properties should be updated. |
Events
ItemsChanged
The ItemsChanged event is raised by the provider to inform all listeners that the items in the data store have changed.
Declaration
event EventHandler<ListChangedEventArgs<T>> ItemsChanged
Event Type
System.EventHandler<ListChangedEventArgs<T>>
|
PositionChanged
The PositionChanged event is raised by the provider to inform all listeners that the current position in data items list has changed.
Declaration
event PositionChangedEventHandler PositionChanged
Event Type
PositionChangedEventHandler
|