Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Scheduler and Reminder > Edit Appointment Dialog

Not answered Edit Appointment Dialog

Feed from this thread
  • Dave Mortgatta avatar

    Posted on Apr 10, 2012 (permalink)

    I am a newbia with RadScheduler control. I would like to add another check event for example prompting user a message before showing the Edit Appointment Dialog Form,  when you double click to add new appointment. Please help me. Thanks.

    Reply

  • Ivan Todorov Ivan Todorov admin's avatar

    Posted on Apr 13, 2012 (permalink)

    Hi Dave,

    Thank you for writing.

    To achieve this, you can use the AppointmentEditDialogShowing event. The following code snippet demonstrates this:
            this.radScheduler1.AppointmentEditDialogShowing += new EventHandler<AppointmentEditDialogShowingEventArgs>(radScheduler1_AppointmentEditDialogShowing);
    //...
            void radScheduler1_AppointmentEditDialogShowing(object sender, AppointmentEditDialogShowingEventArgs e)
            {
                if (!this.radScheduler1.Appointments.Contains(e.Appointment))
                {
                    if (RadMessageBox.Show("Are you sure want to add an appointment?", "Are you sure",
                        MessageBoxButtons.YesNo, RadMessageIcon.Question) == DialogResult.No)
                    {
                        e.Cancel = true;
                    }
                }
            }

    I hope you find this useful. Do not hesitate to write back, if you have any additional questions.

    Regards,
    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>

    Reply

  • Dave Mortgatta avatar

    Posted on Apr 13, 2012 (permalink)

    Nice done. Thank you very much sir. I have another questions: I have another table in the database that store employee information(id, name and group). now I would to bind it into 2 dropdownbox one for the name and one for group and put them in  Edit Appointment Dialog. How do about to accomplish this? Kindly advise and help me please. Thanks,

    Reply

  • Ivan Todorov Ivan Todorov admin's avatar

    Posted on Apr 18, 2012 (permalink)

    Hi Dave,

    The "Adding a custom field to the EditAppointmentDialog" help article describes how to achieve similar scenario. Also, there is an example in our Demo application, which you might find useful. It is called "Custom Appointment Dialog" and it is located under the Scheduler group.

    Please let me know if you need further assistance with this case.

    Regards,
    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Scheduler and Reminder > Edit Appointment Dialog
Related resources for "Edit Appointment Dialog"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]