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

Provide error feedback with grid (WebAPI)

Thread ID:





146502 Aug 6,2019 11:32 AM UTC Aug 7,2019 09:43 AM UTC ASP.NET Core - EJ 2 1
Tags: DataGrid
Yoab Youssoufou
Asked On August 6, 2019 11:32 AM UTC

Hello, I have a grid using WebApi, all is working well, Pls can I have an example on how to display visual feedback for success/failure to the end user, I've tried return Json(Ok) etc..,  but nothing displays. Thank you

Balaji Sekar [Syncfusion]
Replied On August 7, 2019 09:43 AM UTC

Hi Yoab, 

Greetings from the Syncfusion support, 

As per your concern, we suggest you to use the actionComplete(it is triggered when succeeded the Grid action like paging, filtering,.. ) and actionFailure(It is fired when the Grid getting error) events of EJ2 Grid,  you can achieve your requirement using both events in the EJ2 Grid in ASP .Net Core platform and we have already discussed about those events in our Help Documentation. Please refer the below code example, Help documentation for more information. 

    <ejs-grid id="Grid"  actionComplete="actionComplete"  actionFailure="actionFailure" dataSource="ViewBag.DataSource" allowPaging="true"> 
            . . . . . 
    function actionComplete(args) { 
        if (args.requestType === refresh) { 
            // You code here while grid action is success to complete  
    function actionFailure(args) { 
        // You code here while Grid getting error 

Please get back to us, if you need further assistance. 

Balaji Sekar. 


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