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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Provide error feedback with grid (WebAPI)

Thread ID:

Created:

Updated:

Platform:

Replies:

146502 Aug 6,2019 11:32 AM UTC Aug 7,2019 09:43 AM UTC ASP.NET Core - EJ 2 1
loading
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. 
 

div> 
    <ejs-grid id="Grid"  actionComplete="actionComplete"  actionFailure="actionFailure" dataSource="ViewBag.DataSource" allowPaging="true"> 
               <e-grid-columns> 
            . . . . . 
       </e-grid-columns> 
    </ejs-grid> 
</div> 
 
<script> 
    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 
    } 
 
</script> 
 
                                         https://ej2.syncfusion.com/documentation/api/grid/#actioncomplete 

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

Regards, 
Balaji Sekar. 


CONFIRMATION

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