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

Opening EditAppointmentDialog from other control

1 Answer 52 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Jakob
Top achievements
Rank 1
Jakob asked on 19 Jul 2011, 04:31 PM
Hi,

I would like to open a default ScheduleView edit window from a TreeView control.  What I need is to click on a treeview item and get a window populated with the Appointment's data. Please help or let me know whether it's even possible.

Best regards,
Jakob

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 22 Jul 2011, 09:51 AM
Hello Jakob,

You could use RadScheduleView Create command in order to open EditAppointmentDialog:

var app = new Appointment()
{
       Start = DateTime.Now,
       End = DateTime.Now.AddHours(1)
};
RadScheduleViewCommands.CreateAppointment.Execute(app, scheduleView);

where scheduleView is the name of the RadScheduleView control.

Hope this helps.

Regards,
Yana
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
ScheduleView
Asked by
Jakob
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or