Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
335
How to build a Custom Appointment Dialog ?
posted

Hi,

I want to make a custom appointment dialog form which suits our project requirements. I dont want to use the built-in appointment dialog provided.

Please let me know how to do that.

 

Thanks

Panna 

 

Parents
No Data
Reply
  • 2077
    Verified Answer
    Offline posted

    You have to subscribe to the CalendarInfo's BeforeDisplayAppoinmentDialog event:

    protected override void OnLoad(EventArgs e)
    {
        ...
        calendarInfoControl.BeforeDisplayAppointmentDialog
            += OnCalendarInfoBeforeDisplayAppoinmentDialog;
        ...
    }

    In the event handler you should cancel the event and show your own appointment dialog:

    private void OnCalendarInfoBeforeDisplayAppoinmentDialog(
            object sender, DisplayAppointmentDialogEventArgs e)
    {
        e.Cancel = true;
        MyAppointmentDialog appointmentDialog = new MyAppointmentDialog();
        appointmentDialog.Show();
    }

    Hope this helps,
    Emanuel

Children