Drag drop between surfacelistbox and radscheduleview

5 posts, 0 answers
  1. Daniel
    Daniel avatar
    34 posts
    Member since:
    Oct 2011

    Posted 14 Dec 2011 Link to this post

    Does anyone have any articles or example code were drag drop functionality has been implemented between a surfacelistbox and radscheduleview in WPF? Thanks a lot.
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 14 Dec 2011 Link to this post

    Hi Daniel,

    We don't have an example nor we tested it, but I suppose you should be able to successfully use our standard drag-drop behaviors for ListBox because SurfaceListBox derives from ListBox. You can find an example with ListBox in our online demos (browse to ScheduleView, then Drag-Drop example):
    http://demos.telerik.com/wpf

    Regards,
    Valeri Hristov
    the Telerik team

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

  3. UI for WPF is Visual Studio 2017 Ready
  4. Daniel
    Daniel avatar
    34 posts
    Member since:
    Oct 2011

    Posted 14 Dec 2011 Link to this post

    Hi Valeri, thanks for such a prompt response. I have successfully implemented the drag drop behaviour between a standard wpf listbox and radscheduleview in another app. But I more or less followed the article with very few adjustments made by myself - so my understanding of the code is very limited, there are 2 rather complex classes involved if I remember rightly. Adjusting this for the surfacelistbox will be very tricky I would've thought.

    So far I've managed to drag an item from a surfacelistbox onto a scheduleview - this raises the surfacedraganddrop.drop event - but I can't tell what start/end date time the appointment was dragged onto. Can you help with this because this could be a good work around.
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Dec 2011 Link to this post

    Hi Daniel,

    Both RadScheduleView and the ListBox drag-drop behavior use the standard WPF drag-drop events. As far as I can see the Surface SDK has its own drag-drop framework (I didn't knew that before I read your reply) and I suppose the SurfaceListBox uses it instead of the standard WPF drag-drop. This is a problem, because you cannot replace the ScheduleView drag-drop implementation (standard WPF events) and the control does not have API to help you convert the drop point to time and group.

    Best wishes,
    Valeri Hristov
    the Telerik team

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

  6. Daniel
    Daniel avatar
    34 posts
    Member since:
    Oct 2011

    Posted 15 Dec 2011 Link to this post

    Ahh ok, no problem, not the response I was hoping for but at least I know now. Not sure how I'm going to work around this, maybe I should look into somehow converting the touchscreen overlay input to simulate a mouse!? Anyway, thanks a lot.

    Dan.
Back to Top
UI for WPF is Visual Studio 2017 Ready