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

Drag drop between surfacelistbox and radscheduleview

4 Answers 71 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 14 Dec 2011, 11:38 AM
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.

4 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 14 Dec 2011, 02:59 PM
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 >>

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.
0
Valeri Hristov
Telerik team
answered on 15 Dec 2011, 08:57 AM
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 >>

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.
Tags
ScheduleView
Asked by
Daniel
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or