DxPivotGridDataProvider<T>.Create<TDataSource>(Task<TDataSource>) Method

Creates a new DxPivotGridDataProvider<T> instance based on the specified settings.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

public static DxPivotGridDataProvider<T> Create<TDataSource>(
    Task<TDataSource> data
)
    where TDataSource : IEnumerable<T>

Parameters

Name Type Description
data Task<TDataSource>

An asynchronous operation that returns data for the Pivot Grid and Chart.

Type Parameters

Name Description
TDataSource

The data source type.

Returns

Type Description
DxPivotGridDataProvider<T>

The created class object.

Remarks

The following code snippet demonstrates how to create a DxPivotGridDataProvider object based on the Sales.Load() method that asynchronously returns an IEnumerable<T> data source:

...
@code {
    DxPivotGridDataProvider<SaleInfo> PivotGridDataProvider = DxPivotGridDataProvider<SaleInfo>.Create(Sales.Load());
}
See Also