skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class DataProvider

Represent a set of members that functionally affects RadVirtualGrid. They can be overridden to modify its behavior.

Inheritance
System.Object
DataProvider
Namespace: Telerik.Windows.Controls.VirtualGrid
Assembly: Telerik.Windows.Controls.VirtualGrid.dll

Syntax

public class DataProvider : Object

Constructors

DataProvider(IEnumerable)

Initializes a new instance of the DataProvider class.

Declaration
public DataProvider(IEnumerable source)
Parameters
System.Collections.IEnumerable source

The source.

Properties

DistinctValuesLimit

Gets or sets the maximum count of distinct values.

Declaration
public int DistinctValuesLimit { get; set; }
Property Value
System.Int32

InitialColumnCount

Represents the initial column count.

Declaration
protected virtual int InitialColumnCount { get; }
Property Value
System.Int32

InitialRowCount

Represents the initial row count.

Declaration
protected virtual int InitialRowCount { get; }
Property Value
System.Int32

ItemProperties

Gets the item properties.

Declaration
public virtual IList<ItemPropertyInfo> ItemProperties { get; }
Property Value
System.Collections.Generic.IList<System.ComponentModel.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
RadVirtualGrid

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
System.Boolean

Source

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

Declaration
protected QueryableCollectionView Source { get; set; }
Property Value
QueryableCollectionView

Methods

ApplyFilterDescriptor(ColumnFilterDescriptor)

Adds the filter descriptor to the Source QCV.

Declaration
protected virtual void ApplyFilterDescriptor(ColumnFilterDescriptor descriptor)
Parameters
ColumnFilterDescriptor descriptor

ApplySortDescriptor(ColumnSortDescriptor)

Adds the sort descriptor to the Source QCV.

Declaration
protected virtual void ApplySortDescriptor(ColumnSortDescriptor descriptor)
Parameters
ColumnSortDescriptor descriptor

CreateEditor(out FrameworkElement, out DependencyProperty, Object, Int32)

Creates an editor.

Declaration
protected virtual void CreateEditor(out FrameworkElement editor, out DependencyProperty editorProperty, object propertyValue, int columnIndex)
Parameters
System.Windows.FrameworkElement editor

System.Windows.DependencyProperty editorProperty

System.Object propertyValue

System.Int32 columnIndex

DataMemberNeeded(DataMemberEventArgs)

Assigns the DataMemberEventArgs properties based on the values in ItemProperties.

Declaration
protected virtual void DataMemberNeeded(DataMemberEventArgs e)
Parameters
DataMemberEventArgs e

DistinctValuesLoading(DistinctValuesLoadingEventArgs)

Initializes DistinctValuesLoadingEventArgs.ItemsSource based on ItemProperties value.

Declaration
protected virtual void DistinctValuesLoading(DistinctValuesLoadingEventArgs e)
Parameters
DistinctValuesLoadingEventArgs 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
FilteredEventArgs e

FilterDescriptorsPreparing(FilteringEventArgs)

The method is called when the FilterDescriptors are being prepared.

Declaration
protected virtual void FilterDescriptorsPreparing(FilteringEventArgs e)
Parameters
FilteringEventArgs 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
FilterOperatorsLoadingEventArgs e

InsertItemInSource()

Inserts a new item in source.

Declaration
protected virtual void InsertItemInSource()

IsColumnReadOnly(Int32)

Determines whether a given column is ReadOnly.

Declaration
protected virtual bool IsColumnReadOnly(int columnIndex)
Parameters
System.Int32 columnIndex

Returns
System.Boolean

OnCellEditEnded(CellEditEndedEventArgs)

Invoked by RadVirtualGrid when the CellEditEnded event is raised.

Declaration
protected virtual void OnCellEditEnded(CellEditEndedEventArgs e)
Parameters
CellEditEndedEventArgs e

OnCellToolTipNeeded(VirtualGridCellToolTipEventArgs)

Invoked by RadVirtualGrid when the CellToolTipNeeded event is raised.

Declaration
protected virtual void OnCellToolTipNeeded(VirtualGridCellToolTipEventArgs valueEventArgs)
Parameters
VirtualGridCellToolTipEventArgs valueEventArgs

OnCellValueNeeded(CellValueEventArgs)

Invoked by RadVirtualGrid when the CellValueNeeded event is raised.

Declaration
protected virtual void OnCellValueNeeded(CellValueEventArgs valueEventArgs)
Parameters
CellValueEventArgs valueEventArgs

OnEditorNeeded(EditorNeededEventArgs)

Invoked by RadVirtualGrid when the EditorNeeded event is raised.

Declaration
protected virtual void OnEditorNeeded(EditorNeededEventArgs args)
Parameters
EditorNeededEventArgs args

OnEditorValueChanged(CellValueEventArgs)

Invoked by RadVirtualGrid when the EditorValueChanged event is raised.

Declaration
protected virtual void OnEditorValueChanged(CellValueEventArgs args)
Parameters
CellValueEventArgs 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
HeaderValueEventArgs e

OnSortingCompleted()

The method is called when the sort operation is completed.

Declaration
protected virtual void OnSortingCompleted()

PushCellValueToSource(Int32, Int32, Object)

Invoked by RadVirtualGrid when the CellEditEnded event is raised.

Declaration
protected virtual void PushCellValueToSource(int rowIndex, int columnIndex, object value)
Parameters
System.Int32 rowIndex

System.Int32 columnIndex

System.Object value

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
ColumnFilterDescriptor descriptor

RemoveItemsFromSource(List<Int32>)

Removes items from source.

Declaration
protected virtual void RemoveItemsFromSource(List<int> indexesToDelete)
Parameters
System.Collections.Generic.List<System.Int32> indexesToDelete

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
SortedEventArgs e

SortDescriptorPreparing(SortingEventArgs)

The method is called when the SortDescriptors are being prepared.

Declaration
protected virtual void SortDescriptorPreparing(SortingEventArgs e)
Parameters
SortingEventArgs e

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.