Provides a pivot grouping access to local source such as an IList of instances of user defined classes.
Definition
Namespace:Telerik.Pivot.Core
Assembly:Telerik.Pivot.Core.dll
Syntax:
public class LocalDataSourceProvider : DataProviderBase, IDataProvider, INotifyPropertyChanged, ISupportInitialize, IUnderlyingDataProvider
Inheritance: objectDataProviderBaseLocalDataSourceProvider
Implements:
Inherited Members
Constructors
Initializes a new instance of the LocalDataSourceProvider class.
public LocalDataSourceProvider()
Fields
ItemsSourceProperty
DependencyProperty
Identifies the ItemsSource dependency property.
public static readonly DependencyProperty ItemsSourceProperty
Properties
Gets a list of PropertyAggregateDescription that specify how pivot should aggregate data.
public Collection<LocalAggregateDescription> AggregateDescriptions { get; }
Gets a list of CalculatedFields that can be used as a calculated aggregate values.
public Collection<CalculatedField> CalculatedFields { get; }
Gets a list of PropertyGroupDescriptionBase that specify how pivot should group columns.
public Collection<PropertyGroupDescriptionBase> ColumnGroupDescriptions { get; }
Gets or sets the CultureInfo used for grouping and formatting.
public CultureInfo Culture { get; set; }
Gets or sets a boolean value indicating whether nested properties of the objects in the ItemsSource will be displayed in a hierarchy.
public bool EnableHierarchy { get; set; }
Gets a list of PropertyFilterDescriptionBase that specified how pivot should filter items.
public Collection<PropertyFilterDescriptionBase> FilterDescriptions { get; }
The item source for the grouping.
public object ItemsSource { get; set; }
Results
IPivotResults
protected override IPivotResults Results { get; }
Overrides:
Gets a list of PropertyGroupDescriptionBase that specified how pivot should group rows.
public Collection<PropertyGroupDescriptionBase> RowGroupDescriptions { get; }
Gets the state object that is provided to GetDescriptionsDataAsync(object) method.
public override object State { get; }
The object that will be passed to GetDescriptionsDataAsync(object) method.
Overrides:
Methods
Block the calling thread until all calculations performed by calling Refresh() method completes.
public override void BlockUntilRefreshCompletes()
Overrides:
Creates an instance of IFieldDescriptionProvider for this IDataProvider.
protected override IFieldDescriptionProvider CreateFieldDescriptionsProvider()
Overrides:
Creates and returns an aggregate description suitable for the supplied field description.
protected override IAggregateDescription GetAggregateDescriptionForFieldDescriptionCore(IPivotFieldInfo description)
A IPivotFieldInfo instance.
Returns:An IAggregateDescription instance.
Overrides:
Returns a list of suitable functions for the supplied aggregate description.
[Obsolete("Not used. Obsoleted after 2013.Q2.SP1")]
public override IEnumerable<object> GetAggregateFunctionsForAggregateDescription(IAggregateDescription aggregateDescription)
A list of possible aggregate functions.
Overrides:
Returns a filter description suitable for the supplied field description.
protected override FilterDescription GetFilterDescriptionForFieldDescriptionCore(IPivotFieldInfo description)
A IPivotFieldInfo instance.
Returns:An FilterDescription instance.
Overrides:
Creates and returns a group description suitable for the supplied field description.
protected override IGroupDescription GetGroupDescriptionForFieldDescriptionCore(IPivotFieldInfo description)
A IPivotFieldInfo instance.
Returns:An IGroupDescription instance.
Overrides:
Recreates the Results.
protected override void RefreshOverride()
Overrides:
Set the aggregateFunction retrieved from GetAggregateFunctionsForAggregateDescription(IAggregateDescription) to the aggregateDescription.
[Obsolete("Not used. Obsoleted after 2013.Q2.SP1")]
public override void SetAggregateFunctionToAggregateDescription(IAggregateDescription aggregateDescription, object aggregateFunction)
The aggregate function.
Overrides:
Events
Occurs when the underlying data extraction has completed.
public event EventHandler<DrillDownCompletedEventArgs> GetUnderlyingDataCompleted
Implements: