Delete : validate from API and cancel current edit

We like to delete the data only if we have validation passed. For validation we are calling api and once returned we want to show the popup to user, on confirmation we are making api call to delete data. Below is the code and it is not working.

2 Replies

DG Dileep gagan R replied to Dileep gagan R September 17, 2020 11:39 AM UTC

We like to delete the data only if we have validation passed. For validation we are calling api and once returned we want to show the popup to user, on confirmation we are making api call to delete data. Below is the code and it is not working.

https://stackblitz.com/edit/begin-edit?file=src/app/app.component.ts


AG Ajith Govarthan Syncfusion Team September 18, 2020 12:54 PM UTC

Hi Dileep, 

Thanks for contacting Syncfusion support. 

Based your requirement you want to delete the row based on the validation done at the server side. Before we proceed to your query we need following details so please share the below details to validate further on your requirement. 

  1. Share the dataSource bind to the grid component.

  1. Have you used Batch or Normal edit mode?
 
  1. Share the  code example of the API method.
 
  1. Share the Syncfusion package version.
 
Regards, 
Ajith G. 
 



Loader.
Up arrow icon