4 Answers, 1 is accepted
0
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
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 >>
0

Daniel
Top achievements
Rank 1
answered on 14 Dec 2011, 03:15 PM
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.
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.
0
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
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 >>
0

Daniel
Top achievements
Rank 1
answered on 15 Dec 2011, 09:31 AM
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.
Dan.