Scheduler component - confirm dialog before saving when create or edit item

1 Answer 98 Views
Scheduler
Long
Top achievements
Rank 1
Iron
Long asked on 29 Apr 2023, 03:49 PM

Hi Support team,

I have a request to open a confirm dialog when user create or update item in scheduler.

If end user chooses yes button, it will create/update item and close all dialogs.

If end user chooses no button, it will close confirm dialog and keep create/update dialog still opening.

 

Please advice how to do it.

1 Answer, 1 is accepted

Sort by
0
Accepted
Filip
Telerik team
answered on 02 May 2023, 02:26 PM

Hello, Long,

This will require creating a custom-form dialog and implementing the logic that will be executed on the yes and no buttons, more information on form customization can be found in the following article:

https://www.telerik.com/kendo-react-ui/components/scheduler/customization/form/overview/#toc-custom-components

The provided example can also be used as a starting point, it renders a delete icon that opens a dialog that will either delete the item or cancel the action:

https://stackblitz.com/edit/react-lrer2g?file=app%2Fmain.jsx

I hope this helps.

Regards,
Filip
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Long
Top achievements
Rank 1
Iron
commented on 02 May 2023, 05:27 PM

Thanks for your advice. I created a custom dialog and use onSubmit event to implement this requirement. It works now.
Tags
Scheduler
Asked by
Long
Top achievements
Rank 1
Iron
Answers by
Filip
Telerik team
Share this question
or