skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact 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 Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free 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 LocalDataSourceProvider

Provides a pivot grouping access to local source such as an IList of instances of user defined classes.

Inheritance
System.Object
DataProviderBase
LocalDataSourceProvider
Inherited Members
DataProviderBase.IDataProvider.Refresh()
DataProviderBase.BeginInit()
DataProviderBase.EndInit()
DataProviderBase.Refresh()
DataProviderBase.DeferRefresh()
DataProviderBase.Invalidate()
DataProviderBase.OnStatusChanged(DataProviderStatusChangedEventArgs)
DataProviderBase.OnPrepareDescriptionForField(PrepareDescriptionForFieldEventArgs)
DataProviderBase.OnFieldDescriptionsProviderChanged(IFieldDescriptionProvider, IFieldDescriptionProvider)
DataProviderBase.OnPropertyChanged(String)
DataProviderBase.GetAggregateDescriptionForFieldDescription(IPivotFieldInfo)
DataProviderBase.GetGroupDescriptionForFieldDescription(IPivotFieldInfo)
DataProviderBase.GetFilterDescriptionForFieldDescription(IPivotFieldInfo)
DataProviderBase.CreateInstanceCore()
DataProviderBase.FreezeCore(Boolean)
DataProviderBase.FieldInfos
DataProviderBase.DeferUpdates
DataProviderBase.Status
DataProviderBase.AggregatesPosition
DataProviderBase.AggregatesLevel
DataProviderBase.FieldDescriptionsProvider
DataProviderBase.HasPendingChanges
DataProviderBase.Settings
DataProviderBase.IDataProvider.Status
DataProviderBase.IDataProvider.Results
DataProviderBase.IDataProvider.Settings
DataProviderBase.IDataProvider.AggregatesPosition
DataProviderBase.IDataProvider.AggregatesLevel
DataProviderBase.StatusChanged
DataProviderBase.PropertyChanged
DataProviderBase.PrepareDescriptionForField
DataProviderBase.IDataProvider.StatusChanged
Namespace: Telerik.Pivot.Core
Assembly: Telerik.Pivot.Core.dll

Syntax

public class LocalDataSourceProvider : DataProviderBase, IDataProvider, INotifyPropertyChanged, ISupportInitialize, IAggregateDescriptionsGenerator, IUnderlyingDataProvider, ICultureAwareProvider

Constructors

LocalDataSourceProvider()

Initializes a new instance of the LocalDataSourceProvider class.

Declaration
public LocalDataSourceProvider()

Fields

ItemsSourceProperty

Identifies the ItemsSource dependency property.

Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
System.Windows.DependencyProperty

Properties

AggregateDescriptions

Gets a list of PropertyAggregateDescription that specify how pivot should aggregate data.

Declaration
public Collection<LocalAggregateDescription> AggregateDescriptions { get; }
Property Value
System.Collections.ObjectModel.Collection<LocalAggregateDescription>

CalculatedFields

Gets a list of CalculatedFields that can be used as a calculated aggregate values.

Declaration
public Collection<CalculatedField> CalculatedFields { get; }
Property Value
System.Collections.ObjectModel.Collection<CalculatedField>

ColumnGroupDescriptions

Gets a list of PropertyGroupDescriptionBase that specify how pivot should group columns.

Declaration
public Collection<PropertyGroupDescriptionBase> ColumnGroupDescriptions { get; }
Property Value
System.Collections.ObjectModel.Collection<PropertyGroupDescriptionBase>

Culture

Gets or sets the CultureInfo used for grouping and formatting.

Declaration
public CultureInfo Culture { get; set; }
Property Value
System.Globalization.CultureInfo

EnableHierarchy

Gets or sets a boolean value indicating whether nested properties of the objects in the ItemsSource will be displayed in a hierarchy.

Declaration
public bool EnableHierarchy { get; set; }
Property Value
System.Boolean

FilterDescriptions

Gets a list of PropertyFilterDescriptionBase that specified how pivot should filter items.

Declaration
public Collection<PropertyFilterDescriptionBase> FilterDescriptions { get; }
Property Value
System.Collections.ObjectModel.Collection<PropertyFilterDescriptionBase>

ItemsSource

The item source for the grouping.

Declaration
public object ItemsSource { get; set; }
Property Value
System.Object

Results

Declaration
protected override IPivotResults Results { get; }
Property Value
IPivotResults

Overrides
DataProviderBase.Results

RowGroupDescriptions

Gets a list of PropertyGroupDescriptionBase that specified how pivot should group rows.

Declaration
public Collection<PropertyGroupDescriptionBase> RowGroupDescriptions { get; }
Property Value
System.Collections.ObjectModel.Collection<PropertyGroupDescriptionBase>

State

Gets the state object that is provided to GetDescriptionsDataAsync(Object) method.

Declaration
public override object State { get; }
Property Value
System.Object

The object that will be passed to GetDescriptionsDataAsync(Object) method.

Overrides
DataProviderBase.State

Methods

BlockUntilRefreshCompletes()

Block the calling thread until all calculations performed by calling Refresh() method completes.

Declaration
public override void BlockUntilRefreshCompletes()
Overrides
DataProviderBase.BlockUntilRefreshCompletes()

CreateFieldDescriptionsProvider()

Creates an instance of IFieldDescriptionProvider for this IDataProvider.

Declaration
protected override IFieldDescriptionProvider CreateFieldDescriptionsProvider()
Returns
IFieldDescriptionProvider

Overrides
DataProviderBase.CreateFieldDescriptionsProvider()

GetAggregateDescriptionForFieldDescriptionCore(IPivotFieldInfo)

Creates and returns an aggregate description suitable for the supplied field description.

Declaration
protected override IAggregateDescription GetAggregateDescriptionForFieldDescriptionCore(IPivotFieldInfo description)
Parameters
IPivotFieldInfo description

A IPivotFieldInfo instance.

Returns
IAggregateDescription

An IAggregateDescription instance.

Overrides
DataProviderBase.GetAggregateDescriptionForFieldDescriptionCore(IPivotFieldInfo)

GetAggregateFunctionsForAggregateDescription(IAggregateDescription)

Returns a list of suitable functions for the supplied aggregate description.

Declaration
public override IEnumerable<object> GetAggregateFunctionsForAggregateDescription(IAggregateDescription aggregateDescription)
Parameters
IAggregateDescription aggregateDescription

The IAggregateDescription.

Returns
System.Collections.Generic.IEnumerable<System.Object>

A list of possible aggregate functions.

Overrides
DataProviderBase.GetAggregateFunctionsForAggregateDescription(IAggregateDescription)

GetFilterDescriptionForFieldDescriptionCore(IPivotFieldInfo)

Returns a filter description suitable for the supplied field description.

Declaration
protected override FilterDescription GetFilterDescriptionForFieldDescriptionCore(IPivotFieldInfo description)
Parameters
IPivotFieldInfo description

A IPivotFieldInfo instance.

Returns
FilterDescription

An FilterDescription instance.

Overrides
DataProviderBase.GetFilterDescriptionForFieldDescriptionCore(IPivotFieldInfo)

GetGroupDescriptionForFieldDescriptionCore(IPivotFieldInfo)

Creates and returns a group description suitable for the supplied field description.

Declaration
protected override IGroupDescription GetGroupDescriptionForFieldDescriptionCore(IPivotFieldInfo description)
Parameters
IPivotFieldInfo description

A IPivotFieldInfo instance.

Returns
IGroupDescription

An IGroupDescription instance.

Overrides
DataProviderBase.GetGroupDescriptionForFieldDescriptionCore(IPivotFieldInfo)

GetUnderlyingData(IGroup, IGroup)

Executes underlying data extraction for the specified row and column IGroups.

Declaration
public void GetUnderlyingData(IGroup rowGroup, IGroup columnGroup)
Parameters
IGroup rowGroup

The IGroup for rows.

IGroup columnGroup

The IGroup for columns.

Implements
IUnderlyingDataProvider.GetUnderlyingData(IGroup, IGroup)

RefreshOverride()

Recreates the Results.

Declaration
protected override void RefreshOverride()
Overrides
DataProviderBase.RefreshOverride()

SetAggregateFunctionToAggregateDescription(IAggregateDescription, Object)

Set the aggregateFunction retrieved from GetAggregateFunctionsForAggregateDescription(IAggregateDescription) to the aggregateDescription.

Declaration
public override void SetAggregateFunctionToAggregateDescription(IAggregateDescription aggregateDescription, object aggregateFunction)
Parameters
IAggregateDescription aggregateDescription

The IAggregateDescription.

System.Object aggregateFunction

The aggregate function.

Overrides
DataProviderBase.SetAggregateFunctionToAggregateDescription(IAggregateDescription, Object)

Events

GetUnderlyingDataCompleted

Occurs when the underlying data extraction has completed.

Declaration
public event EventHandler<DrillDownCompletedEventArgs> GetUnderlyingDataCompleted
Event Type
System.EventHandler<DrillDownCompletedEventArgs>

Implements
IUnderlyingDataProvider.GetUnderlyingDataCompleted

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.