We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Handling errors in GridEvents OnActionFailure

Thread ID:





150677 Jan 15,2020 09:36 PM UTC Jan 17,2020 11:53 AM UTC Blazor 1
Tags: Grid
Kamil Miszczak
Asked On January 15, 2020 10:06 PM UTC

Hello There,

I'm trying to use Blazor Controls with some promising results, but right now I faced the problem with error handling in grid (custom adaptor). In my crud operations there is throw exception with message but then OnActionFailure event doesnt trigger. It works only for Read, but not for Insert, Remove, Update. Is this a known issue? Is there any workaround to display error messages from CRUD operations?

<GridEvents OnActionFailure="ActionFailureHandler" TValue="MyClass">GridEvents>
<EjsDataManager AdaptorInstance="@typeof(MyCustomAdaptor)"
public class MyCustomAdaptor : DataAdaptor
public override object Insert(DataManager dm, object value, string key)
throw new Exception("Test message"); //I would like to display this message on the page (Exception is thrown)
public partial class MyClass
public void ActionFailureHandler(FailureEventArgs args)
//this handler is not even triggered

Maran Baskar [Syncfusion]
Replied On January 17, 2020 11:53 AM UTC

Hi Kamil, 
Thanks for contacting Syncfusion support 

We are able to reproduce the reported problem from our side. We have confirmed this as a defect and will include this fix "OnActionFailure does not triggered when using custom adaptor operations" in our Volume 4 SP1, 2019 release.  

You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.  
Please get back to us if you need further assistance. 
Maran B 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon