New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class DataProvider

Inheritance: objectDataProvider

Constructors

Initializes a new instance of the DataProvider class.

C#
public DataProvider(IEnumerable source)
Parameters:sourceIEnumerable

The source.

Properties

Gets or sets the maximum count of distinct values.

C#
public int DistinctValuesLimit { get; set; }

Represents the initial column count.

C#
protected virtual int InitialColumnCount { get; }

Represents the initial row count.

C#
protected virtual int InitialRowCount { get; }

ItemProperties

IList<ItemPropertyInfo>

Gets the item properties.

C#
public virtual IList<ItemPropertyInfo> ItemProperties { get; }
Property Value:

The item properties.

Gets or sets the instance of the RadVirtualGrid that uses the DataProvider.

C#
protected RadVirtualGrid ParentGrid { get; set; }

Gets a value that indicates whether the new cell value should be pushed to VirtualGrid after CellEditEnded.

C#
protected virtual bool ShouldPushEditValueToGrid { get; }

Gets or sets a Source QCV collection that enables data operations.

C#
protected QueryableCollectionView Source { get; set; }

Methods

Adds the filter descriptor to the Source QCV.

C#
protected virtual void ApplyFilterDescriptor(ColumnFilterDescriptor descriptor)
Parameters:descriptorColumnFilterDescriptor

Adds the sort descriptor to the Source QCV.

C#
protected virtual void ApplySortDescriptor(ColumnSortDescriptor descriptor)
Parameters:descriptorColumnSortDescriptor

Creates an editor.

C#
protected virtual void CreateEditor(out FrameworkElement editor, out DependencyProperty editorProperty, object propertyValue, int columnIndex)
Parameters:editorFrameworkElementeditorPropertyDependencyPropertypropertyValueobjectcolumnIndexint

Assigns the DataMemberEventArgs properties based on the values in ItemProperties.

C#
protected virtual void DataMemberNeeded(DataMemberEventArgs e)
Parameters:eDataMemberEventArgs

Initializes DistinctValuesLoadingEventArgs.ItemsSource based on ItemProperties value.

C#
protected virtual void DistinctValuesLoading(DistinctValuesLoadingEventArgs e)
Parameters:eDistinctValuesLoadingEventArgs

The method is called when the FilterDescriptors are prepared and a filter operation will occur.

C#
protected virtual void FilterDescriptorsPrepared(FilteredEventArgs e)
Parameters:eFilteredEventArgs

The method is called when the FilterDescriptors are being prepared.

C#
protected virtual void FilterDescriptorsPreparing(FilteringEventArgs e)
Parameters:eFilteringEventArgs

The method is invoked when the FilterOperators for a given column are being loaded.

C#
protected virtual void FilterOperatorsLoading(FilterOperatorsLoadingEventArgs e)
Parameters:eFilterOperatorsLoadingEventArgs

Inserts a new item in source.

C#
protected virtual void InsertItemInSource()

Determines whether a given column is ReadOnly.

C#
protected virtual bool IsColumnReadOnly(int columnIndex)
Parameters:columnIndexintReturns:

bool

Invoked by RadVirtualGrid when the CellEditEnded event is raised.

C#
protected virtual void OnCellEditEnded(CellEditEndedEventArgs e)
Parameters:eCellEditEndedEventArgs

Invoked by RadVirtualGrid when the CellToolTipNeeded event is raised.

C#
protected virtual void OnCellToolTipNeeded(VirtualGridCellToolTipEventArgs valueEventArgs)
Parameters:valueEventArgsVirtualGridCellToolTipEventArgs

Invoked by RadVirtualGrid when the CellValueNeeded event is raised.

C#
protected virtual void OnCellValueNeeded(CellValueEventArgs valueEventArgs)
Parameters:valueEventArgsCellValueEventArgs

Invoked by RadVirtualGrid when the EditorNeeded event is raised.

C#
protected virtual void OnEditorNeeded(EditorNeededEventArgs args)
Parameters:argsEditorNeededEventArgs

Invoked by RadVirtualGrid when the EditorValueChanged event is raised.

C#
protected virtual void OnEditorValueChanged(CellValueEventArgs args)
Parameters:argsCellValueEventArgs

The method is called when the filter operation is completed.

C#
protected virtual void OnFilteringCompleted()

Invoked by RadVirtualGrid when the HeaderValueNeeded event is raised.

C#
protected virtual void OnHeaderValueNeeded(HeaderValueEventArgs e)
Parameters:eHeaderValueEventArgs

The method is called when the sort operation is completed.

C#
protected virtual void OnSortingCompleted()

Invoked by RadVirtualGrid when the CellEditEnded event is raised.

C#
protected virtual void PushCellValueToSource(int rowIndex, int columnIndex, object value)
Parameters:rowIndexintcolumnIndexintvalueobject

Removes all column filters from the Source QCV.

C#
protected virtual void RemoveAllColumnFilters()

Removes the given filter descriptor from the Source QCV.

C#
protected virtual void RemoveColumnFilter(ColumnFilterDescriptor descriptor)
Parameters:descriptorColumnFilterDescriptor

Removes items from source.

C#
protected virtual void RemoveItemsFromSource(List<int> indexesToDelete)
Parameters:indexesToDeleteList<int>

The method is called when the SortDescriptors are prepared and a sort operation will occur.

C#
protected virtual void SortDescriptorPrepared(SortedEventArgs e)
Parameters:eSortedEventArgs

The method is called when the SortDescriptors are being prepared.

C#
protected virtual void SortDescriptorPreparing(SortingEventArgs e)
Parameters:eSortingEventArgs