Class DataProviderBase
Base implementation of IData
Inheritance
Namespace: Telerik.Pivot.Core
Assembly: Telerik.Pivot.Core.dll
Syntax
public abstract class DataProviderBase : Freezable, IDataProvider, INotifyPropertyChanged, ISupportInitialize
Properties
AggregatesLevel
Declaration
public int AggregatesLevel { get; set; }
Property Value
System.
|
AggregatesPosition
DeferUpdates
Gets or sets a value that indicates if changes to this IData
Declaration
public bool DeferUpdates { get; set; }
Property Value
System.
|
Implements
FieldDescriptionsProvider
Declaration
public IFieldDescriptionProvider FieldDescriptionsProvider { get; set; }
Property Value
FieldInfos
Gets the IField
Declaration
public IFieldInfoData FieldInfos { get; protected set; }
Property Value
IField The field information. |
Implements
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
public bool HasPendingChanges { get; }
Property Value
System.
|
Implements
Results
Settings
State
Gets the state object that is provided to Get
Declaration
public abstract object State { get; }
Property Value
System. The object that will be passed to Get |
Implements
Status
Methods
BeginInit()
Declaration
public void BeginInit()
BlockUntilRefreshCompletes()
Block the calling thread until all calculations performed by calling Refresh() method completes.
Declaration
public abstract void BlockUntilRefreshCompletes()
Implements
CreateFieldDescriptionsProvider()
Creates an instance of IField
Declaration
protected abstract IFieldDescriptionProvider CreateFieldDescriptionsProvider()
Returns
CreateInstanceCore()
Declaration
protected override sealed Freezable CreateInstanceCore()
Returns
System.
|
DeferRefresh()
Enters a defer cycle that you can use to merge changes to the provider and delay automatic refresh.
Declaration
public IDisposable DeferRefresh()
Returns
System. An System. |
Implements
EndInit()
Declaration
public void EndInit()
FreezeCore(Boolean)
Declaration
protected override sealed bool FreezeCore(bool isChecking)
Parameters
System.
|
Returns
System.
|
GetAggregateDescriptionForFieldDescription(IPivotFieldInfo)
Creates and returns an aggregate description suitable for the supplied field description.
Declaration
public IAggregateDescription GetAggregateDescriptionForFieldDescription(IPivotFieldInfo info)
Parameters
IPivot A IPivot |
Returns
IAggregate An IAggregate |
Implements
GetAggregateDescriptionForFieldDescriptionCore(IPivotFieldInfo)
Creates and returns an aggregate description suitable for the supplied field description.
Declaration
protected abstract IAggregateDescription GetAggregateDescriptionForFieldDescriptionCore(IPivotFieldInfo description)
Parameters
IPivot A IPivot |
Returns
IAggregate An IAggregate |
GetAggregateFunctionsForAggregateDescription(IAggregateDescription)
Returns a list of suitable functions for the supplied aggregate description.
Declaration
public abstract IEnumerable<object> GetAggregateFunctionsForAggregateDescription(IAggregateDescription aggregateDescription)
Parameters
IAggregate |
Returns
System. A list of possible aggregate functions. |
Implements
GetFilterDescriptionForFieldDescription(IPivotFieldInfo)
Returns a filter description suitable for the supplied field description.
Declaration
public FilterDescription GetFilterDescriptionForFieldDescription(IPivotFieldInfo info)
Parameters
IPivot A IPivot |
Returns
Filter An Filter |
Implements
GetFilterDescriptionForFieldDescriptionCore(IPivotFieldInfo)
Returns a filter description suitable for the supplied field description.
Declaration
protected abstract FilterDescription GetFilterDescriptionForFieldDescriptionCore(IPivotFieldInfo description)
Parameters
IPivot A IPivot |
Returns
Filter An Filter |
GetGroupDescriptionForFieldDescription(IPivotFieldInfo)
Creates and returns a group description suitable for the supplied field description.
Declaration
public IGroupDescription GetGroupDescriptionForFieldDescription(IPivotFieldInfo info)
Parameters
IPivot A IPivot |
Returns
IGroup An IGroup |
Implements
GetGroupDescriptionForFieldDescriptionCore(IPivotFieldInfo)
Creates and returns a group description suitable for the supplied field description.
Declaration
protected abstract IGroupDescription GetGroupDescriptionForFieldDescriptionCore(IPivotFieldInfo description)
Parameters
IPivot A IPivot |
Returns
IGroup An IGroup |
Invalidate()
Notify that changes were applied that would alter the pivot results. Queues an automatic Refresh().
Declaration
protected void Invalidate()
OnFieldDescriptionsProviderChanged(IFieldDescriptionProvider, IFieldDescriptionProvider)
Called when FieldDescriptionsProvider is changed.
Declaration
protected virtual void OnFieldDescriptionsProviderChanged(IFieldDescriptionProvider oldProvider, IFieldDescriptionProvider newProvider)
Parameters
IField
|
IField
|
OnPrepareDescriptionForField(PrepareDescriptionForFieldEventArgs)
Raises the Prepare
Declaration
protected virtual void OnPrepareDescriptionForField(PrepareDescriptionForFieldEventArgs args)
Parameters
Prepare The Prepare |
OnPropertyChanged(String)
Raises PropertyChanged event.
Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
System.
|
OnStatusChanged(DataProviderStatusChangedEventArgs)
Raises the Status
Declaration
protected virtual void OnStatusChanged(DataProviderStatusChangedEventArgs args)
Parameters
Data The Data |
Refresh()
Declaration
public void Refresh()
RefreshOverride()
SetAggregateFunctionToAggregateDescription(IAggregateDescription, Object)
Set the aggregateFunction
retrieved from GetaggregateDescription
.
Declaration
public abstract void SetAggregateFunctionToAggregateDescription(IAggregateDescription aggregateDescription, object aggregateFunction)
Parameters
IAggregate |
System. The aggregate function. |
Implements
Events
PrepareDescriptionForField
Occurs when description should be prepared for a specified field info.
Declaration
public event EventHandler<PrepareDescriptionForFieldEventArgs> PrepareDescriptionForField
Event Type
System.
|
Implements
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.
|
StatusChanged
Declaration
public event EventHandler<DataProviderStatusChangedEventArgs> StatusChanged
Event Type
System.
|
Explicit Interface Implementations
IDataProvider.AggregatesLevel
Gets or sets the position where groups for the aggregates should be placed.
Declaration
int IDataProvider.AggregatesLevel { get; set; }
Returns
System.
|
Implements
IDataProvider.AggregatesPosition
Gets or sets a value indicating where the aggregate groups should be positioned.
Declaration
PivotAxis IDataProvider.AggregatesPosition { get; set; }
Returns
Implements
IDataProvider.Refresh()
Force recalculation operation.
Declaration
void IDataProvider.Refresh()
Implements
IDataProvider.Results
Gets the results from the last grouping.
Declaration
IPivotResults IDataProvider.Results { get; }
Returns
Implements
IDataProvider.Settings
Gets or sets the IPivot
Declaration
IPivotSettings IDataProvider.Settings { get; }
Returns
Implements
IDataProvider.Status
Gets the status of this instance.
Declaration
DataProviderStatus IDataProvider.Status { get; }
Returns
Implements
IDataProvider.StatusChanged
Occurs when the current operation has completed.
Declaration
event EventHandler<DataProviderStatusChangedEventArgs> IDataProvider.StatusChanged
Returns
System.
|