Hi Leland,
Yes, you can
update the pivot table by dynamically changing the list type data source.
Please refer to the code example below.
Code-example:
|
<SfButton OnClick="@OnChangeData">Change Data</SfButton>
public async Task
OnChangeData(MouseEventArgs args)
{
await Task.Delay(1000);
if
(_productDataType == 0)
PivotData = ProductDetails.GetProductData();
else if (_productDataType
== 1)
PivotData = ProductDetails.GetProductData2();
if
(_productDataType >= 1)
_productDataType = 0;
else
_productDataType++;
}
|
Meanwhile, we have prepared a sample for your reference
below.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PivotTable-1021104143
Please let us
know if you have any concerns.
Regards,
Angelin
Faith Sheeba.