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

GridEvents OnActionBegin definition causes no edit dialog

Thread ID:





150751 Jan 18,2020 12:00 AM UTC Jan 20,2020 02:07 PM UTC Blazor 1
Tags: Grid
Kamil Miszczak
Asked On January 18, 2020 12:00 AM UTC

Hello There,

I noticed the problem with Custom Edit Dialog. IF I define in my grid that I want to handle OnActionBegin in my code. It works fine for Add new rows, but if I try to Edit selected rows OnActionBegin method is triggered but then edit dialog is not displayed. Args.canceled is false so I'm not interrupting the process. Is it a known issue?
Here is an Example:
//Grid definition contains:
<GridEvents OnActionBegin="OnActionBegin" TValue="MyClass"></GridEvents>
<EjsDataManager AdaptorInstance="@typeof(MyCustomAdaptor)"
<GridEditSettings AllowAdding="true"
var myObj = (context as MyClass);
<MyEditor MyFiled="@myObj" MyDialogMessageProvider="@_myDialogMessageProvider"/>
//code of OnActionBegin:
public void OnActionBegin(ActionEventArgs<MyClass> args)
if (args.Action == "add")

//args.Data validations here
prevent close dialog and show message code here
args.Cancel = true;

Renjith Singh Rajendran [Syncfusion]
Replied On January 20, 2020 02:07 PM UTC

Hi Kamil, 

Thanks for contacting Syncfusion support. 

We tried to reproduce the problem by creating a sample with the codes which you have shared with us. But the edit dialog template renders fine and update in Grid works fine with our sample. We are attaching the sample for your convenience, please download the sample from the link below, 
If you are still facing difficulties, kindly, get back to us with the following details for better assistance.  
  1. Share the sample which you have tried form your side. So that we could validate the script error from your side and provide a solution.
  2. If possible, kindly reproduce the problem with the attached sample and share with us for further analysis.
  3. Share the details of script error if any occurred in the browser console.
  4. Share the Syncfusion version details.
The provided information will help us analyze the problem, and provide you a solution as early as possible. 

Renjith Singh Rajendran. 


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