Edit Appointment Dialog

4 posts, 0 answers
  1. Dave Mortgatta
    Dave Mortgatta avatar
    16 posts
    Member since:
    Aug 2009

    Posted 10 Apr 2012 Link to this post

    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.
  2. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 13 Apr 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dave Mortgatta
    Dave Mortgatta avatar
    16 posts
    Member since:
    Aug 2009

    Posted 13 Apr 2012 Link to this post

    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,
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 18 Apr 2012 Link to this post

    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 >>
Back to Top