Class
DataProviderBase

Base implementation of IDataProvider.

Definition

Namespace:Telerik.Pivot.Core

Assembly:Telerik.Pivot.Core.dll

Syntax:

cs-api-definition
public abstract class DataProviderBase : Freezable, IDataProvider, INotifyPropertyChanged, ISupportInitialize

Inheritance: objectDataProviderBase

Derived Classes: LocalDataSourceProviderOlapDataProviderQueryableDataProvider

Implements: IDataProviderINotifyPropertyChangedISupportInitialize

Properties

AggregatesLevel

Declaration

cs-api-definition
public int AggregatesLevel { get; set; }

Property Value

int

AggregatesPosition

Declaration

cs-api-definition
public PivotAxis AggregatesPosition { get; set; }

Property Value

PivotAxis

DeferUpdates

Gets or sets a value that indicates if changes to this IDataProvider will trigger automatic Refresh().

Declaration

cs-api-definition
public bool DeferUpdates { get; set; }

Property Value

bool

Implements IDataProvider.DeferUpdates

FieldDescriptionsProvider

Declaration

cs-api-definition
public IFieldDescriptionProvider FieldDescriptionsProvider { get; set; }

Property Value

IFieldDescriptionProvider

FieldInfos

Gets the IFieldInfoData instance that provided information for all available properties of the data source.

Declaration

cs-api-definition
public IFieldInfoData FieldInfos { get; protected set; }

Property Value

IFieldInfoData

The field information.

Implements IDataProvider.FieldInfos

HasPendingChanges

Gets a value that indicates if there are pending changes since the last Refresh(). The value will be true after a change is applied. The value will be false after an automatic or user triggered Refresh(). The value will be false during any work or download process so even if false Results may not be ready yet. In that case you may check Status for additional information.

Declaration

cs-api-definition
public bool HasPendingChanges { get; }

Property Value

bool

Implements IDataProvider.HasPendingChanges

Results

Declaration

cs-api-definition
protected abstract IPivotResults Results { get; }

Property Value

IPivotResults

Settings

Declaration

cs-api-definition
protected IPivotSettings Settings { get; }

Property Value

IPivotSettings

State

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

Declaration

cs-api-definition
public abstract object State { get; }

Property Value

object

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

Implements IDataProvider.State

Status

Declaration

cs-api-definition
public DataProviderStatus Status { get; }

Property Value

DataProviderStatus

Methods

BeginInit()

Declaration

cs-api-definition
public void BeginInit()

Implements ISupportInitialize.BeginInit()

BlockUntilRefreshCompletes()

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

Declaration

cs-api-definition
public abstract void BlockUntilRefreshCompletes()

Implements IDataProvider.BlockUntilRefreshCompletes()

CreateFieldDescriptionsProvider()

Creates an instance of IFieldDescriptionProvider for this IDataProvider.

Declaration

cs-api-definition
protected abstract IFieldDescriptionProvider CreateFieldDescriptionsProvider()

Returns

IFieldDescriptionProvider

CreateInstanceCore()

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA2204:Literals should be spelled correctly", MessageId = "CreateInstanceCore", Justification = "CreateInstanceCore is the name of the inherited and overriden method from Freezable.")]
[SuppressMessage("Microsoft.Naming", "CA2204:Literals should be spelled correctly", MessageId = "DataProviderBase", Justification = "DataProviderBase is the name of the class.")]
protected override sealed Freezable CreateInstanceCore()

Returns

Freezable

DeferRefresh()

Enters a defer cycle that you can use to merge changes to the provider and delay automatic refresh.

Declaration

cs-api-definition
public IDisposable DeferRefresh()

Returns

IDisposable

An IDisposable object that you can use to dispose of the calling object.

Implements IDataProvider.DeferRefresh()

EndInit()

Declaration

cs-api-definition
public void EndInit()

Implements ISupportInitialize.EndInit()

FreezeCore(bool)

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA2204:Literals should be spelled correctly", MessageId = "DataProviderBase", Justification = "DataProviderBase is the name of the class.")]
protected override sealed bool FreezeCore(bool isChecking)

Parameters

isChecking

bool

Returns

bool

GetAggregateDescriptionForFieldDescription(IPivotFieldInfo)

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

Declaration

cs-api-definition
public IAggregateDescription GetAggregateDescriptionForFieldDescription(IPivotFieldInfo info)

Parameters

info

IPivotFieldInfo

A IPivotFieldInfo instance.

Returns

IAggregateDescription

An IAggregateDescription instance.

Implements IDataProvider.GetAggregateDescriptionForFieldDescription(IPivotFieldInfo)

GetAggregateDescriptionForFieldDescriptionCore(IPivotFieldInfo)

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

Declaration

cs-api-definition
protected abstract IAggregateDescription GetAggregateDescriptionForFieldDescriptionCore(IPivotFieldInfo description)

Parameters

description

IPivotFieldInfo

A IPivotFieldInfo instance.

Returns

IAggregateDescription

An IAggregateDescription instance.

GetAggregateFunctionsForAggregateDescription(IAggregateDescription)

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

Declaration

cs-api-definition
[Obsolete("Not used. Obsoleted after 2013.Q2.SP1")]
public abstract IEnumerable<object> GetAggregateFunctionsForAggregateDescription(IAggregateDescription aggregateDescription)

Parameters

aggregateDescription

IAggregateDescription

The IAggregateDescription.

Returns

IEnumerable<object>

A list of possible aggregate functions.

Implements IDataProvider.GetAggregateFunctionsForAggregateDescription(IAggregateDescription)

GetFilterDescriptionForFieldDescription(IPivotFieldInfo)

Returns a filter description suitable for the supplied field description.

Declaration

cs-api-definition
public FilterDescription GetFilterDescriptionForFieldDescription(IPivotFieldInfo info)

Parameters

info

IPivotFieldInfo

A IPivotFieldInfo instance.

Returns

FilterDescription

An FilterDescription instance.

Implements IDataProvider.GetFilterDescriptionForFieldDescription(IPivotFieldInfo)

GetFilterDescriptionForFieldDescriptionCore(IPivotFieldInfo)

Returns a filter description suitable for the supplied field description.

Declaration

cs-api-definition
protected abstract FilterDescription GetFilterDescriptionForFieldDescriptionCore(IPivotFieldInfo description)

Parameters

description

IPivotFieldInfo

A IPivotFieldInfo instance.

Returns

FilterDescription

An FilterDescription instance.

GetGroupDescriptionForFieldDescription(IPivotFieldInfo)

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

Declaration

cs-api-definition
public IGroupDescription GetGroupDescriptionForFieldDescription(IPivotFieldInfo info)

Parameters

info

IPivotFieldInfo

A IPivotFieldInfo instance.

Returns

IGroupDescription

An IGroupDescription instance.

Implements IDataProvider.GetGroupDescriptionForFieldDescription(IPivotFieldInfo)

GetGroupDescriptionForFieldDescriptionCore(IPivotFieldInfo)

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

Declaration

cs-api-definition
protected abstract IGroupDescription GetGroupDescriptionForFieldDescriptionCore(IPivotFieldInfo description)

Parameters

description

IPivotFieldInfo

A IPivotFieldInfo instance.

Returns

IGroupDescription

An IGroupDescription instance.

Invalidate()

Notify that changes were applied that would alter the pivot results. Queues an automatic Refresh().

Declaration

cs-api-definition
protected void Invalidate()

OnFieldDescriptionsProviderChanged(IFieldDescriptionProvider, IFieldDescriptionProvider)

Called when FieldDescriptionsProvider is changed.

Declaration

cs-api-definition
protected virtual void OnFieldDescriptionsProviderChanged(IFieldDescriptionProvider oldProvider, IFieldDescriptionProvider newProvider)

Parameters

oldProvider

IFieldDescriptionProvider

newProvider

IFieldDescriptionProvider

OnPrepareDescriptionForField(PrepareDescriptionForFieldEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnPrepareDescriptionForField(PrepareDescriptionForFieldEventArgs args)

Parameters

args

PrepareDescriptionForFieldEventArgs

The PrepareDescriptionForFieldEventArgs instance containing the event data.

OnPropertyChanged(string)

Raises PropertyChanged event.

Declaration

cs-api-definition
protected void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

OnStatusChanged(DataProviderStatusChangedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnStatusChanged(DataProviderStatusChangedEventArgs args)

Parameters

args

DataProviderStatusChangedEventArgs

The DataProviderStatusChangedEventArgs instance containing the event data.

Refresh()

Declaration

cs-api-definition
public void Refresh()

RefreshOverride()

Recreates the Results.

Declaration

cs-api-definition
protected abstract void RefreshOverride()

SetAggregateFunctionToAggregateDescription(IAggregateDescription, object)

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

Declaration

cs-api-definition
[Obsolete("Not used. Obsoleted after 2013.Q2.SP1")]
public abstract void SetAggregateFunctionToAggregateDescription(IAggregateDescription aggregateDescription, object aggregateFunction)

Parameters

aggregateDescription

IAggregateDescription

The IAggregateDescription.

aggregateFunction

object

The aggregate function.

Implements IDataProvider.SetAggregateFunctionToAggregateDescription(IAggregateDescription, object)

Events

PrepareDescriptionForField

Occurs when description should be prepared for a specified field info.

Declaration

cs-api-definition
public event EventHandler<PrepareDescriptionForFieldEventArgs> PrepareDescriptionForField

Event Value

EventHandler<PrepareDescriptionForFieldEventArgs>

Implements IDataProvider.PrepareDescriptionForField

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged

StatusChanged

Declaration

cs-api-definition
public event EventHandler<DataProviderStatusChangedEventArgs> StatusChanged

Event Value

EventHandler<DataProviderStatusChangedEventArgs>