You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/pivot-table/getting-started-webapp.md
+66-2Lines changed: 66 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -270,7 +270,7 @@ In-order to define each field in the respective axis, the following basic proper
270
270
{% endhighlight %}
271
271
{% endtabs %}
272
272
273
-
N> [View Sample in GitHub.](https://github.com/SyncfusionExamples/Blazor-Getting-Started-Examples/tree/main/PivotTable/BlazorWebApp)
273
+
274
274
275
275
## Applying formatting to a value field
276
276
@@ -313,7 +313,7 @@ N> Only fields from value section, which is in the form of numeric data values a
313
313
{% endhighlight %}
314
314
{% endtabs %}
315
315
316
-
After successful compilation of the application, simply press F5 to run the same. The pivot table component will render in the default web browser like below.
316
+
* Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This will render the Syncfusion Blazor Pivot Table component in your default web browser like below.
317
317
318
318
{% previewsample "https://blazorplayground.syncfusion.com/embed/rtVfZMqtrIxIbWRH?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor PivotTable with Formatting](images/blazor-pivottable-formatting.png)" %}
319
319
@@ -489,6 +489,70 @@ The calculated field feature allows user to insert or add a new calculated field
489
489
490
490
{% previewsample "https://blazorplayground.syncfusion.com/embed/BtrTDMUNBxfzcndb?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor PivotTable with Caluclation Button](images/blazor-pivottable-calculate-button.png)" %}
491
491
492
+
## Handling exceptions
493
+
494
+
Exceptions occurred during pivot table actions can be handled without stopping application. These error messages or exception details can be acquired using the [OnActionFailure](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.PivotView.PivotViewEvents-1.html#Syncfusion_Blazor_PivotView_PivotViewEvents_1_OnActionFailure) event.
495
+
496
+
The argument passed to the [OnActionFailure](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.PivotView.PivotViewEvents-1.html#Syncfusion_Blazor_PivotView_PivotViewEvents_1_OnActionFailure) event contains the error details returned from the server.
497
+
498
+
N> Recommend you to bind `OnActionFailure` event during your application development phase, this helps you to find any exceptions. You can pass these exception details to our support team to get solution as early as possible.
499
+
500
+
The following sample code demonstrates notifying user when server-side exception has occurred during data operation,
public void ActionFailure(PivotActionFailureEventArgs args)
545
+
{
546
+
this.ErrorDetails = args.ErrorInfo.Message;
547
+
StateHasChanged();
548
+
}
549
+
}
550
+
551
+
{% endhighlight %}
552
+
{% endtabs %}
553
+
554
+
N> [View Sample in GitHub.](https://github.com/SyncfusionExamples/Blazor-Getting-Started-Examples/tree/main/PivotTable/BlazorWebApp)
555
+
492
556
## See also
493
557
494
558
*[Getting Started with Syncfusion Blazor for Client-Side in .NET Core CLI](https://blazor.syncfusion.com/documentation/getting-started/blazor-webassembly-dotnet-cli)
Copy file name to clipboardExpand all lines: blazor/pivot-table/getting-started.md
+65-1Lines changed: 65 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -334,7 +334,7 @@ N> Only fields from value section, which is in the form of numeric data values a
334
334
{% endhighlight %}
335
335
{% endtabs %}
336
336
337
-
After successful compilation of the application, simply press F5 to run the same. The pivot table component will render in the default web browser like below.
337
+
* Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This will render the Syncfusion Blazor Pivot Table component in your default web browser like below.
338
338
339
339
{% previewsample "https://blazorplayground.syncfusion.com/embed/rtVfZMqtrIxIbWRH?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor PivotTable with Formatting](images/blazor-pivottable-formatting.png)" %}
340
340
@@ -510,6 +510,70 @@ The calculated field feature allows user to insert or add a new calculated field
510
510
511
511
{% previewsample "https://blazorplayground.syncfusion.com/embed/BtrTDMUNBxfzcndb?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor PivotTable with Caluclation Button](images/blazor-pivottable-calculate-button.png)" %}
512
512
513
+
## Handling exceptions
514
+
515
+
Exceptions occurred during pivot table actions can be handled without stopping application. These error messages or exception details can be acquired using the [OnActionFailure](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.PivotView.PivotViewEvents-1.html#Syncfusion_Blazor_PivotView_PivotViewEvents_1_OnActionFailure) event.
516
+
517
+
The argument passed to the [OnActionFailure](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.PivotView.PivotViewEvents-1.html#Syncfusion_Blazor_PivotView_PivotViewEvents_1_OnActionFailure) event contains the error details returned from the server.
518
+
519
+
N> Recommend you to bind `OnActionFailure` event during your application development phase, this helps you to find any exceptions. You can pass these exception details to our support team to get solution as early as possible.
520
+
521
+
The following sample code demonstrates notifying user when server-side exception has occurred during data operation,
public void ActionFailure(PivotActionFailureEventArgs args)
566
+
{
567
+
this.ErrorDetails = args.ErrorInfo.Message;
568
+
StateHasChanged();
569
+
}
570
+
}
571
+
572
+
{% endhighlight %}
573
+
{% endtabs %}
574
+
575
+
N> [View Sample in GitHub.](https://github.com/SyncfusionExamples/Blazor-Getting-Started-Examples/tree/main/PivotTable)
576
+
513
577
## See also
514
578
515
579
*[Getting Started with Syncfusion Blazor for Client-Side in .NET Core CLI](https://blazor.syncfusion.com/documentation/getting-started/blazor-webassembly-dotnet-cli)
0 commit comments