DataProvider
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
Initializes a new instance of the DataProvider class.
Properties
Gets or sets the maximum count of distinct values.
public int DistinctValuesLimit { get; set; }
Represents the initial column count.
protected virtual int InitialColumnCount { get; }
Represents the initial row count.
protected virtual int InitialRowCount { get; }
ItemProperties
IList<ItemPropertyInfo>
Gets the item properties.
public virtual IList<ItemPropertyInfo> ItemProperties { get; }
The item properties.
Gets or sets the instance of the RadVirtualGrid that uses the DataProvider.
protected RadVirtualGrid ParentGrid { get; set; }
Gets a value that indicates whether the new cell value should be pushed to VirtualGrid after CellEditEnded.
protected virtual bool ShouldPushEditValueToGrid { get; }
Gets or sets a Source QCV collection that enables data operations.
protected QueryableCollectionView Source { get; set; }
Methods
Adds the filter descriptor to the Source QCV.
protected virtual void ApplyFilterDescriptor(ColumnFilterDescriptor descriptor)
Adds the sort descriptor to the Source QCV.
protected virtual void ApplySortDescriptor(ColumnSortDescriptor descriptor)
Assigns the DataMemberEventArgs properties based on the values in ItemProperties.
Initializes DistinctValuesLoadingEventArgs.ItemsSource based on ItemProperties value.
protected virtual void DistinctValuesLoading(DistinctValuesLoadingEventArgs e)
The method is called when the FilterDescriptors are prepared and a filter operation will occur.
protected virtual void FilterDescriptorsPrepared(FilteredEventArgs e)
The method is called when the FilterDescriptors are being prepared.
protected virtual void FilterDescriptorsPreparing(FilteringEventArgs e)
The method is invoked when the FilterOperators for a given column are being loaded.
protected virtual void FilterOperatorsLoading(FilterOperatorsLoadingEventArgs e)
Inserts a new item in source.
protected virtual void InsertItemInSource()
Invoked by RadVirtualGrid when the CellEditEnded event is raised.
protected virtual void OnCellEditEnded(CellEditEndedEventArgs e)
Invoked by RadVirtualGrid when the CellToolTipNeeded event is raised.
protected virtual void OnCellToolTipNeeded(VirtualGridCellToolTipEventArgs valueEventArgs)
Invoked by RadVirtualGrid when the CellValueNeeded event is raised.
protected virtual void OnCellValueNeeded(CellValueEventArgs valueEventArgs)
Invoked by RadVirtualGrid when the EditorNeeded event is raised.
protected virtual void OnEditorNeeded(EditorNeededEventArgs args)
Invoked by RadVirtualGrid when the EditorValueChanged event is raised.
protected virtual void OnEditorValueChanged(CellValueEventArgs args)
The method is called when the filter operation is completed.
protected virtual void OnFilteringCompleted()
Invoked by RadVirtualGrid when the HeaderValueNeeded event is raised.
protected virtual void OnHeaderValueNeeded(HeaderValueEventArgs e)
The method is called when the sort operation is completed.
protected virtual void OnSortingCompleted()
Removes all column filters from the Source QCV.
protected virtual void RemoveAllColumnFilters()
Removes the given filter descriptor from the Source QCV.
protected virtual void RemoveColumnFilter(ColumnFilterDescriptor descriptor)
The method is called when the SortDescriptors are prepared and a sort operation will occur.
The method is called when the SortDescriptors are being prepared.