OnActionComplete never fires

This keeps happening in my development with Grid. The OnActionComplete never fires.

After selecting a row and clicking on the delete button, only the OnActionBegin event is fired but not the 

OnActionComplete.


SfGrid ID="Agreement" @ref="grid" DataSource="@GridData" AllowPaging="true" Toolbar="@Toolbars">
    <GridPageSettings PageSize="10"></GridPageSettings>
    <GridEditSettings AllowDeleting="true"></GridEditSettings>
    <GridEvents OnRecordDoubleClick="RowSelected" OnActionBegin="ActionBegin" OnActionComplete="ActionComplete" TValue="WebSearchResultDto"></GridEvents>
</SfGrid>
public async Task ActionComplete(ActionEventArgs<WebSearchResultDto> args)
    {
        await jsRuntime.InvokeVoidAsync("console.log", "Action Begin");
        await jsRuntime.InvokeVoidAsync("console.log", "ActionBegin RequestType: " + args.RequestType);
        await jsRuntime.InvokeVoidAsync("console.log", "ActionBegin Action: " + args.Action);


        if (args.RequestType == Syncfusion.Blazor.Grids.Action.BeginEdit)
        {
            // Triggers once editing operation completes
        }
        else if (args.RequestType == Syncfusion.Blazor.Grids.Action.Add)
        {
            // Triggers once add operation completes
        }
        else if (args.RequestType == Syncfusion.Blazor.Grids.Action.Cancel)
        {
            // Triggers once cancel operation completes
        }
        else if (args.RequestType == Syncfusion.Blazor.Grids.Action.Save)
        {
            // Triggers once save operation completes
        }
        else if (args.RequestType == Syncfusion.Blazor.Grids.Action.Delete)
        {
          
        }
    }


    public async Task ActionBegin(ActionEventArgs<WebSearchResultDto> args)
    {
        await jsRuntime.InvokeVoidAsync("console.log", "Action Begin");
        await jsRuntime.InvokeVoidAsync("console.log", "ActionBegin RequestType: " + args.RequestType);
        await jsRuntime.InvokeVoidAsync("console.log", "ActionBegin Action: " + args.Action);


        if (args.RequestType == Syncfusion.Blazor.Grids.Action.BeginEdit)
        {
            // Triggers once editing operation completes
        }
        else if (args.RequestType == Syncfusion.Blazor.Grids.Action.Add)
        {
            // Triggers once add operation completes
        }
        else if (args.RequestType == Syncfusion.Blazor.Grids.Action.Cancel)
        {
            // Triggers once cancel operation completes
        }
        else if (args.RequestType == Syncfusion.Blazor.Grids.Action.Save)
        {
            // Triggers once save operation completes
        }
        else if (args.RequestType == Syncfusion.Blazor.Grids.Action.Delete)
        {
            
        }
    }


browser output

Action Begin

blazor.server.js:1 ActionBegin RequestType: Delete

blazor.server.js:1 ActionBegin Action: Delete






2 Replies

BA Barry July 26, 2023 12:22 AM UTC

This does not happen with every page in the app. I was wondering if other users have reported similar problem and if any root cause was identified. 



NP Naveen Palanivel Syncfusion Team July 26, 2023 10:03 PM UTC

Hi Barry,

Greetings from Syncfusion support.

Based on your query, It appears that you are experiencing an issue where the onactioncomplete event is not triggering after deleting a row. We have investigated the problem using the latest version (22.1.39) and tested it . However, we were unable to reproduce the issue on our end. When we delete a row, the onactioncomplete event fires as expected, and it passes the request type as "delete." To provide you with better assistance, we have included a sample for your reference.


Sample link : https://blazorplayground.syncfusion.com/embed/hjhAjwhxcasSvvSe?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5

Please let us know if you have any concerns.


Regards,

Naveen Palanivel


Loader.
Up arrow icon