Hi Chaffois,
Thanks for contacting Syncfusion support.
We have validated the provided code example and suspect that the return data from the BatchUrl method is not in the correct format.
When using remoteSaveAdaptor with batchUrl , all the CRUD changes need to be returned as response. This is demonstrated in the below code snippet,
Request to the controller
the batch method arguments need to be accessed by using “CRUDModel” class
Finally the batch method arguments is returned from the controller as like below
|
public ActionResult BatchUpdate(CRUDModel batchmodel) // get the batch arguments using CRUDModel class
{
// perform your actions
return Json(new { added = batchmodel.Added, changed = batchmodel.Changed, deleted = batchmodel.Deleted, value = batchmodel.Value, action = batchmodel.action, key = batchmodel.key }); // return batch arguments with this format to client
}
public class CRUDModel
{
public List<BigData> Added { get; set; }
public List<BigData> Changed { get; set; }
public List<BigData> Deleted { get; set; }
public BigData Value { get; set; }
public int key { get; set; }
public string action { get; set; }
}
|
Response from the controller:
We have prepared a simple sample with remoteSaveAdaptor and batchUrl, you can get it from the below link.
If you are still facing the issue, please share the below details that will be helpful for us to provide a better solution as early as possible
- Ensure whether the return data is in correct format
- Ensure whether the data is updated in the database properly and “ListeDetailSaisieParcelle” is updated
- Share the Syncfusion package version
- Is there any script error?
Regards,
Pavithra S