Hi Richard,
We are glad to announce that our Essential Studio 2022 Volume 2 Main Release V20.2.36 is rolled out and the support to “Raise event while switching display view in toolbar option” has been included in this release. Please refer to the following sample.
Code snippet:
<SfPivotView> <PivotViewEvents TValue="PivotProductDetails" OnActionBegin="actionBegin" OnActionComplete="actionEnd" OnActionFailure="actionFailure"></PivotViewEvents> </SfPivotView>
@Code{ //Triggers while an action begins public void actionBegin(PivotActionBeginEventArgs args) { if(args.ActionName == "Table view" && args.ActionName == "Chart view") { args.Cancel=false; ActionBeginName = args.ActionName; Console.WriteLine(args.ActionName); } }
//Triggers while action completed. public void actionEnd (PivotActionCompleteEventArgs args) { if( args.ActionName =="Table view shown" && args.ActionName == "Chart view shown") { ActionCompleteName=args.ActionName; Console.WriteLine(args.ActionName); }
}
//Triggers while action failed to achieve desired result. public void actionFailure(PivotActionFailureEventArgs args) { Console.WriteLine(args.ErrorInfo); Console.WriteLine(args.ActionName); } } |
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PivotTable-781691219
Release Notes: https://blazor.syncfusion.com/documentation/release-notes/20.2.36?type=all#pivot-table
We thank you for your support and appreciate your patience in waiting for this release. Please contact us if you require any further assistance.
Regards,
Angelin Faith Sheeba.