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

Drag and drop between two ScheduleViews

3 Answers 58 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
JiFong Chen
Top achievements
Rank 1
JiFong Chen asked on 25 Aug 2011, 02:51 AM
Are we able to implement 2 WPF ScheduleViews on the same Window with ability to drag and drop appointments between each other?

[ScheduleView 1]
- Room 101 [ appointment ]
- Room 102
- Room 103 [ appointment ]
----------------------------------
[ScheduleView 2]
- Reservation Z8329 [ appointment ]
- Reservation Z8342 [ appointment ]
- Reservation Z8451 [ appointment ]

E.g. Drag the appointment from ScheduleView 2 (Reservation Z8342) to ScheduleView 1 (Room 102)

Can we achieve this?

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 25 Aug 2011, 01:15 PM
Hello Jifong,

By default the user can drag and drop appointments between two RadScheduleViews without any additional coding.  You can try it in this online example.


Best wishes,
Yana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
JiFong Chen
Top achievements
Rank 1
answered on 12 Sep 2011, 07:28 AM
I can drag and drop appointments between two ScheduleView, but I need to be able to update the records in the database.

[ScheduleView 1]
- Room 101 [ appointment ]
- Room 102
- Room 103 [ appointment ]
----------------------------------
[ScheduleView 2]
- Reservation Z8329 [ appointment ]
- Reservation Z8342 [ appointment ]
- Reservation Z8451 [ appointment ]

e.g.
When I drag (Reservation Z8342 Appointment) from ScheduleView2 and drop onto ScheduleView1 (Room 102 Resource) Timeline, the database needs to be updated. I believe this can be achieved through code-behind, but I cannot get it to work.

Please advise, thanks.
0
Yana
Telerik team
answered on 15 Sep 2011, 09:27 AM
Hello Jifong,

You can subscribe to AppointmentCreated event and update the database in its handler. More information about RadScheduleView events can be found here.

Greetings,
Yana
the Telerik team

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

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