This is a migrated thread and some comments may be shown as answers.

Edit Appointment Dialog

3 Answers 112 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Dave Mortgatta
Top achievements
Rank 1
Dave Mortgatta asked on 10 Apr 2012, 10:55 PM
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.

3 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 13 Apr 2012, 12:56 PM
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 >>
0
Dave Mortgatta
Top achievements
Rank 1
answered on 13 Apr 2012, 04:59 PM
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,
0
Ivan Todorov
Telerik team
answered on 18 Apr 2012, 02:46 PM
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 >>
Tags
Scheduler and Reminder
Asked by
Dave Mortgatta
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Dave Mortgatta
Top achievements
Rank 1
Share this question
or