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

RadSchedule - EditAppointment

1 Answer 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dejan Jovanov
Top achievements
Rank 1
Dejan Jovanov asked on 04 Feb 2013, 03:46 PM
Hi,

I have RadSchedule controls that shows Appointmesnts.

When I updated schedule with one Appointment, it works fine,

RadScheduleViewCommands.EditAppointment.Execute(a, this.ScheduleView);


but when i have updated schedule with more Appointments like:
                foreach (AppointmentViewModel a in appointments)
                {
                    RadScheduleViewCommands.EditAppointment.Execute(a, this.ScheduleView);
                }
application crashes.

Thanks,
Dejan

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 07 Feb 2013, 01:56 PM
Hello Dejan,

EditAppointment command actually opens the EditAppointmentDialog, so with this code you are showing multiple dialogs at the same time - I guess this causes the application to crash.

If you just need to edit some properties of the appointments with code, please check this help article.

Kind regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Dejan Jovanov
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or