How do I add additional function to the radscheduler dialog box OK Button

1 Answer 23 Views
Scheduler and Reminder
Dominic
Top achievements
Rank 2
Iron
Iron
Iron
Dominic asked on 01 Nov 2021, 03:54 AM

I want to add a check function to the scheduler dialog box OK BUTTON. How do I do that?

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 01 Nov 2021, 06:44 AM
Hello, Dominic,

You can create a derivative of EditAppointmentDialog and override its ValidateInput method. It is triggered when the OK button is clicked. Hence, you can perform any additional code in the method.

Additional information about creating custom dialogs in RadScheduler is available in the following help articles:
https://docs.telerik.com/devtools/winforms/controls/scheduler/appointments-and-dialogs/adding-a-custom-field-to-the-editappointment-dialog 
https://docs.telerik.com/devtools/winforms/controls/scheduler/dialogs/editappointmentdialog 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
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.

Dominic
Top achievements
Rank 2
Iron
Iron
Iron
commented on 02 Nov 2021, 12:53 AM | edited

Hi Dess, how do I exit the dialog box without saving if the condition is not met?

Please check my pic attachment part highlighted in RED. Thanks.

I tried "Exit Sub" but it still creates the appointment.

Dess | Tech Support Engineer, Principal
Telerik team
commented on 03 Nov 2021, 09:56 AM

Dominic, the ApplySettingsToEvent method is called when the OK button is clicked. If you skip the base logic and just return in the if statement, the changes made on the dialog wouldn't be applied to the affected Appointment.
Tags
Scheduler and Reminder
Asked by
Dominic
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or