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

Drag and drop a new Appointment missing resource

3 Answers 42 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Dédé
Top achievements
Rank 1
Dédé asked on 25 Mar 2013, 11:21 AM
Hi,

I am using v2013.1.220.45.

I have created a ScheduleView with databound Resources.
I am dragging data from a GridView to the ScheduleView. All is working, but when dropping, the new appointment in the "AppointmentCreating" event is not associated to the resource I have dropped.

How can I get the resource I have dropped on ?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 28 Mar 2013, 02:30 PM
Hello Damien,

Please use AppointmentCreated event instead - in its handler you will be able to get the resources assigned to the newly created appointment without a problem.

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Dédé
Top achievements
Rank 1
answered on 28 Mar 2013, 02:42 PM
Hi,

Thanks for the tip, but my goal is to drag data from a grid, drop on the view, but show a prefilled "new appointment" window, before creating the appointment.
So to achieve this, I copy the new appointment in the "creating" event somewhere, cancel it, and issue a new "New appointment" command. And with a flag and some piece of code, I have all my data, except the resource my new appointment was dropped on.

For dealing with my issue, I think on my side I can use flags in the "Created" event to get the resource, and recreate the event using the new window.
I think on your side when dropping a new appointment, you could add the resource it was dropped on, before calling the "creating" event.
And/or maybe add a kind of DropBehavior, with "CreateAppointment" (the way it works now) and "DropShowWindow" that instead of creating the appointment shows the "new appointment" window, filled with the dropped data.

Thanks.
0
Yana
Telerik team
answered on 01 Apr 2013, 09:06 AM
Hi Damien,

Thank you for your feedback, the suggestions will be considered.

Kind regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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