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