Drag & Drop confirmation in with DialogComponent

Hi guys,

I'm currently using this method to confirm Drag and Drop event in Schedule component.

const onDragStop = (args) => {
if (confirm("Please confirm appointment change !")) {
args.cancel = false;
} else {
args.cancel = true
}
}


This approach is working great but I'm trying to achieve Scheduler Drag&Drop confirmation through component state change within the DialogComponent(ej2-react-popups).

I think It's much better for user experience, to have a nice modal confirmation.


Is that possible ?

Cheers


3 Replies 1 reply marked as answer

VM Vengatesh Maniraj Syncfusion Team April 4, 2022 01:48 PM UTC

Hi Sinisa,


Yes. It is possible. Please find the sample below.

Sample: https://stackblitz.com/edit/react-zxnhcr-gktz5l?file=index.js


Regards,

Vengatesh


Marked as answer

SI Sinisa replied to Vengatesh Maniraj April 5, 2022 12:32 AM UTC

Hi Vengatesh,


Thank you very much, this is working great, and I see where was my mistake.

Cheers,

Sinisa




VM Vengatesh Maniraj Syncfusion Team April 5, 2022 03:45 AM UTC

Hi Sinisa,


You are most welcome.

Please get in touch with us if you need any further assistance.


Regards,

Vengatesh 


Loader.
Up arrow icon