showDeleteConfirmDialog doesn't work

Hi

I have the following code
const editOptions = { allowDeleting: true, showDeleteConfirmDialog: true}

<GridComponent dataSource={groupsGridData} toolbar={tools} editSettings={editOptions} >

While the Delete button is showing on the toolbar, clicking on it does nothing. The confirm dialog is not showing and the record is not deleted.
Am I missing more settings to make it work?

3 Replies 1 reply marked as answer

MS Manivel Sellamuthu Syncfusion Team May 17, 2021 07:35 AM UTC

Hi Amos, 

Greetings from Syncfusion support. 

We have checked your query at your end. we suspect that you have not injected the “Edit” module. So please ensure to inject the Edit module which is used to handle editing actions . 
We have prepared a working sample for your convenience. Please refer the below sample and documentation link for more information. 



If you still faced the issue please share the complete Grid and Syncfusion package version for further assistance. 

Regards, 
Manivel 


Marked as answer

AM Amos May 17, 2021 07:57 AM UTC

Well, your suspicious was right :)
I thought Edit is for editing, not deleting :)
Thanks


MS Manivel Sellamuthu Syncfusion Team May 18, 2021 04:48 AM UTC

Hi Amos, 

Thanks for your update. 

We are glad that your  issue has been resolved. 

In EJ 2 Grid Edit module is used for handling Add, Update and Delete operations. So it is necessary to inject Edit module to enable CRUD functionality. 

Please let us know if you need further assistance. 

Regards, 
Manivel 


Loader.
Up arrow icon