DataGrid auto refresh

I have added this line to my code, I can do CRUD. Only problem is it does not refresh after I click Update. It refreshes when I build the project the next time.

<e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Batch"></e-grid-editSettings>
<e-data-manager url="/Privacy/UrlFunction" adaptor="UrlAdaptor" batchUrl="Privacy/BatchMethod"></e-data-manager>

1 Reply

PS Pavithra Subramaniyam Syncfusion Team January 17, 2022 01:42 PM UTC

Hi desmond, 
 
Thanks for contacting Syncfusion support. 
 
For EJ2 Grid batch editing with UrlAdaptor, you need to send the updated data/ changes(batchmodel) back to the client. Please refer to the below code example and documentation link for more information. 
 
public IActionResult BatchUpdate([FromBody]CRUDModel batchmodel) 
        { 
            .  .  . 
            var data = order.ToList(); 
            return Json(data); 
 
        } 
 
 
If you still facing the issue, please share the below details that will be helpful for us to provide a better solution as early as possible. 
 
  1. Share your full Grid code
  2. Share the server-side code for Grid
  3. Is there any script error while doing batch editing?
  4. Share the Syncfusion package version
 
Regards, 
Pavithra S 


Loader.
Up arrow icon