Hi folks!
Is there any way to handle actions inside of Reminder dialog?
I need to implement some operations when people are dismissing appointment/
Thanks in advance.
Dimi, thx, but your code doesn't work as soon as I get same DialogResult.Cancel when I close the reminder form and when I press Dismiss Button. Do u have a workaround for it?
Hello, In case that you need to handle particular appointment behind dismissed you probably is best to inhered the ReminderDialog. And handle dismiss events acordingly the selected apointment.However, you should be able to do it also with current ReminderDialog. You can use this sample in order to handle particular Apointment begin displayed:vooid CalendarInfo_BeforeDisplayReminderDialog(object sender, Infragistics.Win.UltraWinSchedule.CancelableAppointmentEventArgs e) { ReminderDialog dialog = new ReminderDialog(sender as UltraCalendarInfo); dialog.AddAppointmentReminder(e.Appointment); if (dialog.ShowDialog() == DialogResult.Cancel) { string info = string.Empty; info += "This Reminder was last dismissed " + e.Appointment.Description + e.Appointment.EndDateTime.ToString(); MessageBox.Show(info, "AfterDismissDisplayReminderDialog", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }Note that also “DismissAll “ will be handled in this scenario, you need to aware in case if there is more than one appointment.I hope this information was helpful, let me know if you have additional questions.DimiDeveloper Support Engineer
Dimitrina Gineva"]if (control.Name == "cmdDismissAll" || control.Name == "cmdDismiss") control.Click += new EventHandler(control_Click);
Dimi!
That's not what I was talkin about. Simple Event Handler does not contain info about current Appointment being dismissed. I need this info also to do some operations - so your solution won't work for me
Hello, I believe that you can use the same approach described here in order to access the “Dismiss” and “DismissAll” buttons:http://community.infragistics.com/forums/t/24602.aspxIn addition you need to find the “Dismiss” and “DismissAll” and attache to the click event and implement the operation that you need. if (control.Name == "cmdDismissAll" || control.Name == "cmdDismiss") control.Click += new EventHandler(control_Click);Just note that this is not recommended workaround and is better to implement own dialog and handle the appropriate actions.I hope this information was helpful, let me know if you have additional questions.DimiDeveloper Support Engineer