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

Replacing Default Dialogs

3 Answers 81 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 03 May 2011, 08:09 AM
Hi,

how do I replace the appointment creation/edit/etc. dialogs with truly custom implementations, i.e. not only template changes?

It seems that I can add a handler for the ShowDialog event. But setting the EventArg property Handled to true doesn't suppress the default dialog handling. Can I simply do my custom UI handling and then Cancel the event, e.g.

void SchedulerView_ShowDialog(object sender, ShowDialogEventArgs e)
{
    // Here goes the custom modal UI
    // ...
 
    e.Cancel = true;
}

Thanks,
Alexander

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 05 May 2011, 01:34 PM
Hello Alexander,

Please check this forum thread - it explains how to customize the RadScheduleView EditAppointmentDialog.

Regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Alexander
Top achievements
Rank 1
answered on 06 May 2011, 07:25 AM
Hi Yana,

thank you for your response. Yes, I had already figured out how to access the AppointmentDialogViewModel.

Do you have a code sample demonstrating the canceling and removing of the newly created appointment?

Happy Holidays to you and your colleagues!
Alexander
0
Yana
Telerik team
answered on 11 May 2011, 01:01 PM
Hello Alexander,

You can use AppointmentSaving or AppointmentEditing events, more information about them can be found here.
If this doesn't help, could you please explain in more details the needed approach? Thanks

Greetings,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ScheduleView
Asked by
Alexander
Top achievements
Rank 1
Answers by
Yana
Telerik team
Alexander
Top achievements
Rank 1
Share this question
or