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