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

Customer Recurrence Dialog

1 Answer 62 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Tinus
Top achievements
Rank 2
Tinus asked on 29 Aug 2012, 02:07 PM

Hi,

I tried to create and use a custom Recurrence Dialog derived from EditRecurrenceDialog. I've not found a factory like IAppointmentFactory for appointment dialogs so I tried to use the derived dialog directly in the event handler:

private void radScheduler1_RecurrenceEditDialogShowing(object sender,
Telerik.WinControls.UI.RecurrenceEditDialogShowingEventArgs e)
  e.RecurrenceEditDialog = new MyRecurrenceDialog(e.Appointment);
}

But it always shows the standard dialog layout. What I'm doing wrong?

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 30 Aug 2012, 12:19 PM
Hello Tinus,

Thank you for writing.

The IAppointmentFactory provides interface for appointment factories and is not related anyhow to the dialogs. You should implement and use such factory only if you are adding custom fields to the appointments (e.g. you are inheriting from the Appointment class).

As to showing custom EditRecurrenceDialog, the event handler you have posted seems correct and I am not sure if there is something else you are missing. I am attaching a small sample project which demonstrates the implementation of such scenario. Hope you find it useful.

Please let me know if you need further assistance.

All the best,
Ivan Todorov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
Scheduler and Reminder
Asked by
Tinus
Top achievements
Rank 2
Answers by
Ivan Todorov
Telerik team
Share this question
or