Drag and drop a new Appointment missing resource

4 posts, 0 answers
  1. Dédé
    Dédé avatar
    60 posts
    Member since:
    May 2009

    Posted 25 Mar 2013 Link to this post

    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.
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 28 Mar 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Dédé
    Dédé avatar
    60 posts
    Member since:
    May 2009

    Posted 28 Mar 2013 Link to this post

    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.
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 01 Apr 2013 Link to this post

    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.

Back to Top