IDataProvider
Provides data access for pivot grouping.
Definition
Namespace:Telerik.Pivot.Core
Assembly:Telerik.WinControls.PivotGrid.dll
Syntax:
public interface IDataProvider : INotifyPropertyChanged, ISupportInitialize
Derived Classes:
Inherited Members
Properties
Gets or sets the position where groups for the aggregates should be placed.
int AggregatesLevel { get; set; }
Gets or sets a value indicating where the aggregate groups should be positioned.
PivotAxis AggregatesPosition { get; set; }
Gets or sets a property that indicates if changes to the grouping settings would trigger computations immediately when invalidated or on explicit Refresh().
bool DeferUpdates { get; set; }
Gets the IFieldInfoData instance that provided information for all available properties of the data source.
IFieldInfoData FieldInfos { get; }
The field information.
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.
bool HasPendingChanges { get; }
Results
IPivotResults
Gets the results from the last grouping.
IPivotResults Results { get; }
Gets or sets the IPivotSettings instance that is being used.
IPivotSettings Settings { get; }
Gets the state object that is provided to GetDescriptionsDataAsync(object) method.
object State { get; }
The object that will be passed to GetDescriptionsDataAsync(object) method.
Gets the status of this instance.
DataProviderStatus Status { get; }
Methods
Block the calling thread until all calculations performed by calling Refresh() method completes.
void BlockUntilRefreshCompletes()
Enters a defer cycle that you can use to merge changes to the data provider and delay automatic refresh.
IDisposable DeferRefresh()
An IDisposable object that you can use to dispose of the calling object.
Creates and returns an aggregate description suitable for the supplied field description.
IAggregateDescription GetAggregateDescriptionForFieldDescription(IPivotFieldInfo info)
A IPivotFieldInfo instance.
Returns:An IAggregateDescription instance.
Returns a filter description suitable for the supplied field description.
FilterDescription GetFilterDescriptionForFieldDescription(IPivotFieldInfo info)
A IPivotFieldInfo instance.
Returns:An FilterDescription instance.
Creates and returns a group description suitable for the supplied field description.
IGroupDescription GetGroupDescriptionForFieldDescription(IPivotFieldInfo info)
A IPivotFieldInfo instance.
Returns:An IGroupDescription instance.
Force recalculation operation.
void Refresh()
Events
Occurs when description should be prepared for a specified field info.
event EventHandler<PrepareDescriptionForFieldEventArgs> PrepareDescriptionForField
Occurs when the current operation has completed.
event EventHandler<DataProviderStatusChangedEventArgs> StatusChanged