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

Programmatically Open EditAppointmentDialogue?

2 Answers 26 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 29 Sep 2011, 08:59 PM
Hi All,

Can you tell me how I can programmatically open the EditAppointmentDialogue, creating a new Appointment (as if the user had double-clicked in an empty time slot)?

Thanks,
Scott

2 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 30 Sep 2011, 12:34 PM
Hi Scott, 


I would suggest:
  • create a new instance of Appointment
  • add this object to the appointments collection in the view model
  • execute the EditAppointment command command and send the new created appointment as parameter:

RadScheduleViewCommands.EditAppointment.Execute(appointment, this.scheduleView);


Hope this helps.


Best wishes,
George
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Scott
Top achievements
Rank 1
answered on 02 Oct 2011, 09:09 PM
Hi George,

Perfect--thanks. That should work well for us.

Cheers,
Scott
Tags
ScheduleView
Asked by
Scott
Top achievements
Rank 1
Answers by
George
Telerik team
Scott
Top achievements
Rank 1
Share this question
or