ClassDataProvider
Represent a set of members that functionally affects RadVirtualGrid. They can be overridden to modify its behavior.
Definition
Namespace:Telerik.Windows.Controls.VirtualGrid
Assembly:Telerik.Windows.Controls.VirtualGrid.dll
Syntax:
public class DataProvider
Inheritance: objectDataProvider
Constructors
DataProvider(IEnumerable)
Initializes a new instance of the DataProvider class.
Declaration
public DataProvider(IEnumerable source)
Parameters
source
The source.
Properties
DistinctValuesLimit
Gets or sets the maximum count of distinct values.
InitialColumnCount
Represents the initial column count.
InitialRowCount
Represents the initial row count.
ItemProperties
Gets the item properties.
Declaration
public virtual IList<ItemPropertyInfo> ItemProperties { get; }
Property Value
IList<ItemPropertyInfo>
The item properties.
ParentGrid
Gets or sets the instance of the RadVirtualGrid that uses the DataProvider.
Declaration
protected RadVirtualGrid ParentGrid { get; set; }
Property Value
ShouldPushEditValueToGrid
Gets a value that indicates whether the new cell value should be pushed to VirtualGrid after CellEditEnded.
Declaration
protected virtual bool ShouldPushEditValueToGrid { get; }
Property Value
Source
Gets or sets a Source QCV collection that enables data operations.
Declaration
protected QueryableCollectionView Source { get; set; }
Property Value
Methods
ApplyFilterDescriptor(ColumnFilterDescriptor)
Adds the filter descriptor to the Source QCV.
Declaration
protected virtual void ApplyFilterDescriptor(ColumnFilterDescriptor descriptor)
Parameters
descriptor
ApplySortDescriptor(ColumnSortDescriptor)
Adds the sort descriptor to the Source QCV.
Declaration
protected virtual void ApplySortDescriptor(ColumnSortDescriptor descriptor)
Parameters
descriptor
CreateEditor(out FrameworkElement, out DependencyProperty, object, int)
Creates an editor.
DataMemberNeeded(DataMemberEventArgs)
Assigns the DataMemberEventArgs properties based on the values in ItemProperties.
Declaration
protected virtual void DataMemberNeeded(DataMemberEventArgs e)
Parameters
e
DistinctValuesLoading(DistinctValuesLoadingEventArgs)
Initializes DistinctValuesLoadingEventArgs.ItemsSource based on ItemProperties value.
Declaration
protected virtual void DistinctValuesLoading(DistinctValuesLoadingEventArgs e)
Parameters
e
FilterDescriptorsPrepared(FilteredEventArgs)
The method is called when the FilterDescriptors are prepared and a filter operation will occur.
Declaration
protected virtual void FilterDescriptorsPrepared(FilteredEventArgs e)
Parameters
e
FilterDescriptorsPreparing(FilteringEventArgs)
The method is called when the FilterDescriptors are being prepared.
Declaration
protected virtual void FilterDescriptorsPreparing(FilteringEventArgs e)
Parameters
e
FilterOperatorsLoading(FilterOperatorsLoadingEventArgs)
The method is invoked when the FilterOperators for a given column are being loaded.
Declaration
protected virtual void FilterOperatorsLoading(FilterOperatorsLoadingEventArgs e)
Parameters
e
InsertItemInSource()
Inserts a new item in source.
Declaration
protected virtual void InsertItemInSource()
IsColumnReadOnly(int)
Determines whether a given column is ReadOnly.
OnCellEditEnded(CellEditEndedEventArgs)
Invoked by RadVirtualGrid when the CellEditEnded event is raised.
Declaration
protected virtual void OnCellEditEnded(CellEditEndedEventArgs e)
Parameters
e
OnCellToolTipNeeded(VirtualGridCellToolTipEventArgs)
Invoked by RadVirtualGrid when the CellToolTipNeeded event is raised.
Declaration
protected virtual void OnCellToolTipNeeded(VirtualGridCellToolTipEventArgs valueEventArgs)
Parameters
valueEventArgs
OnCellValueNeeded(CellValueEventArgs)
Invoked by RadVirtualGrid when the CellValueNeeded event is raised.
Declaration
protected virtual void OnCellValueNeeded(CellValueEventArgs valueEventArgs)
Parameters
valueEventArgs
OnEditorNeeded(EditorNeededEventArgs)
Invoked by RadVirtualGrid when the EditorNeeded event is raised.
Declaration
protected virtual void OnEditorNeeded(EditorNeededEventArgs args)
Parameters
args
OnEditorValueChanged(CellValueEventArgs)
Invoked by RadVirtualGrid when the EditorValueChanged event is raised.
Declaration
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
protected virtual void OnEditorValueChanged(CellValueEventArgs args)
Parameters
args
OnFilteringCompleted()
The method is called when the filter operation is completed.
Declaration
protected virtual void OnFilteringCompleted()
OnHeaderValueNeeded(HeaderValueEventArgs)
Invoked by RadVirtualGrid when the HeaderValueNeeded event is raised.
Declaration
protected virtual void OnHeaderValueNeeded(HeaderValueEventArgs e)
Parameters
e
OnSortingCompleted()
The method is called when the sort operation is completed.
Declaration
protected virtual void OnSortingCompleted()
PushCellValueToSource(int, int, object)
Invoked by RadVirtualGrid when the CellEditEnded event is raised.
RemoveAllColumnFilters()
Removes all column filters from the Source QCV.
Declaration
protected virtual void RemoveAllColumnFilters()
RemoveColumnFilter(ColumnFilterDescriptor)
Removes the given filter descriptor from the Source QCV.
Declaration
protected virtual void RemoveColumnFilter(ColumnFilterDescriptor descriptor)
Parameters
descriptor
RemoveItemsFromSource(List<int>)
Removes items from source.
SortDescriptorPrepared(SortedEventArgs)
The method is called when the SortDescriptors are prepared and a sort operation will occur.
Declaration
protected virtual void SortDescriptorPrepared(SortedEventArgs e)
Parameters
e
SortDescriptorPreparing(SortingEventArgs)
The method is called when the SortDescriptors are being prepared.
Declaration
protected virtual void SortDescriptorPreparing(SortingEventArgs e)
Parameters
e