Hello.
* using C Sharp + WinForms
I have created a custom menu and when i attach it to Scheduler context menu, i can no longer access the AppointmentEditDialogShowing event.
What i am trying to do is populate the Start and End dates into my Custom New/Edit Appointment Dialog. If i use the default context menu, on the EditDialogShowing event, i can catch the dates using :
If i use my custom context menu, select a few empty cells and no longer know when it starts and ends. What can i do catch this dates using this ex: custom context menu ?
* using C Sharp + WinForms
I have created a custom menu and when i attach it to Scheduler context menu, i can no longer access the AppointmentEditDialogShowing event.
What i am trying to do is populate the Start and End dates into my Custom New/Edit Appointment Dialog. If i use the default context menu, on the EditDialogShowing event, i can catch the dates using :
Telerik.WinControls.UI.Appointment app = (Telerik.WinControls.UI.Appointment)e.Appointment;DateTime ini = app.Start;DateTime end = app.End;//cancel Scheduler Edit/new built in dialoge.Cancel = true;//Pass the values to my new/edit dialog and show it.....If i use my custom context menu, select a few empty cells and no longer know when it starts and ends. What can i do catch this dates using this ex: custom context menu ?
foreach (RadItem ri in e.ContextMenu.Items){ ri.Visibility = ElementVisibility.Collapsed;}RadMenuItem rmi1 = new RadMenuItem("New / Edit Special Appointment");rmi1.Click += new EventHandler(rmi1_Click);RadMenuItem rmi2 = new RadMenuItem("Another Action");rmi2.Click += new EventHandler(rmi2_Click); e.ContextMenu.Items.Add(rmi1); e.ContextMenu.Items.Add(rmi2);