DxPivotGridDataProvider<T>.Create<TDataSource>(Task<TDataSource>) Method
In This Article
Creates a new DxPivotGridDataProvider<T> instance based on the specified settings.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
public static DxPivotGridDataProvider<T> Create<TDataSource>(
Task<TDataSource> data
)
where TDataSource : IEnumerable<T>
#Parameters
Name | Type | Description |
---|---|---|
data | Task<TData |
An asynchronous operation that returns data for the Pivot Grid and Chart. |
#Type Parameters
Name | Description |
---|---|
TData |
The data source type. |
#Returns
Type | Description |
---|---|
Dx |
The created class object. |
#Remarks
The following code snippet creates a DxPivotGridDataProvider object based on the Sales.Load() method that asynchronously returns an IEnumerable<T> data source:
Razor
...
@code {
DxPivotGridDataProvider<SaleInfo> PivotGridDataProvider = DxPivotGridDataProvider<SaleInfo>.Create(Sales.Load());
}
See Also