This is a migrated thread and some comments may be shown as answers.
Drag from RadTreeVIew to RadScheduleView Example
6 Answers 46 Views
This is a migrated thread and some comments may be shown as answers.
Cliff McManus
Top achievements
Rank 1
Cliff McManus asked on 06 Feb 2012, 04:27 AM
Does anybody have a good example of setting up a treeview and allowing drag and drop to radschedule view.There is a post out there (http://www.telerik.com/community/forums/silverlight/scheduleview/drag-drop-from-radtreeview-to-radscheduleview.aspx) but the app does not compile.
Thanks in advance. Cliff

6 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 06 Feb 2012, 02:52 PM
Hello Cliff,

We checked the attached in the other thread project and it is compiled without a problem. Can you tell us the errors you receive?

Regards,
Yana
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Cliff McManus
Top achievements
Rank 1
answered on 06 Feb 2012, 09:20 PM
Here are the errors I receive, Thanks for the quick response.

Error 1 The type 'Telerik.Windows.DragDrop.Behaviors.DragDropState' cannot be used as type parameter 'TBehavior' in the generic type or method 'Telerik.Windows.DragDrop.Behaviors.DragDropHelper<TState,TBehavior>'. There is no implicit reference conversion from 'Telerik.Windows.DragDrop.Behaviors.DragDropState' to 'Telerik.Windows.DragDrop.Behaviors.DragDropBehavior<Telerik.Windows.Controls.TreeView.TreeViewDragDropBehavior>'. C:\Users\Cliff\Desktop\Lightswitch Training\Telerick\TreeViewDropScheduleview (Wont Compile)\TreeView\TreeViewDragDropHelper.cs 13 15 DragDropTestApp

Error 2 The type 'Telerik.Windows.Controls.TreeView.TreeViewDragDropBehavior' cannot be used as type parameter 'TState' in the generic type or method 'Telerik.Windows.DragDrop.Behaviors.DragDropHelper<TState,TBehavior>'. There is no implicit reference conversion from 'Telerik.Windows.Controls.TreeView.TreeViewDragDropBehavior' to 'Telerik.Windows.DragDrop.Behaviors.DragDropState'. C:\Users\Cliff\Desktop\Lightswitch Training\Telerick\TreeViewDropScheduleview (Wont Compile)\TreeView\TreeViewDragDropHelper.cs 13 15 DragDropTestApp

Error 3 'Telerik.Windows.Controls.TreeView.TreeViewDragDropHelper' does not implement inherited abstract member 'Telerik.Windows.DragDrop.Behaviors.DragDropHelper<Telerik.Windows.Controls.TreeView.TreeViewDragDropBehavior,Telerik.Windows.DragDrop.Behaviors.DragDropState>.GetDraggedItems(object)' C:\Users\Cliff\Desktop\Lightswitch Training\Telerick\TreeViewDropScheduleview (Wont Compile)\TreeView\TreeViewDragDropHelper.cs 13 15 DragDropTestApp

Error 4 'Telerik.Windows.Controls.TreeView.TreeViewDragDropHelper.FindDragSource(System.Windows.FrameworkElement)': no suitable method found to override C:\Users\Cliff\Desktop\Lightswitch Training\Telerick\TreeViewDropScheduleview (Wont Compile)\TreeView\TreeViewDragDropHelper.cs 19 39 DragDropTestApp

Error 5 'Telerik.Windows.Controls.TreeView.TreeViewDragDropHelper.FindDraggedItem(System.Windows.FrameworkElement)': no suitable method found to override C:\Users\Cliff\Desktop\Lightswitch Training\Telerick\TreeViewDropScheduleview (Wont Compile)\TreeView\TreeViewDragDropHelper.cs 37 39 DragDropTestApp

Error 6 'Telerik.Windows.Controls.TreeView.TreeViewDragDropHelper.FindDropItemsControl(System.Windows.FrameworkElement, object)': no suitable method found to override C:\Users\Cliff\Desktop\Lightswitch Training\Telerick\TreeViewDropScheduleview (Wont Compile)\TreeView\TreeViewDragDropHelper.cs 47 39 DragDropTestApp

Error 7 'Telerik.Windows.Controls.TreeView.TreeViewDragDropHelper.FindDropTarget(System.Windows.FrameworkElement)': no suitable method found to override C:\Users\Cliff\Desktop\Lightswitch Training\Telerick\TreeViewDropScheduleview (Wont Compile)\TreeView\TreeViewDragDropHelper.cs 62 39 DragDropTestApp

Error 8 'Telerik.Windows.Controls.TreeView.TreeViewDragDropHelper.GetDraggedItems(System.Windows.FrameworkElement)': no suitable method found to override C:\Users\Cliff\Desktop\Lightswitch Training\Telerick\TreeViewDropScheduleview (Wont Compile)\TreeView\TreeViewDragDropHelper.cs 77 42 DragDropTestApp

Error 9 'Telerik.Windows.Controls.TreeView.TreeViewDragDropHelper.Drop(System.Windows.FrameworkElement, System.Windows.FrameworkElement, object, System.Type)': no suitable method found to override C:\Users\Cliff\Desktop\Lightswitch Training\Telerick\TreeViewDropScheduleview (Wont Compile)\TreeView\TreeViewDragDropHelper.cs 100 27 DragDropTestApp
0
Yana
Telerik team
answered on 08 Feb 2012, 12:52 PM
Hello Cliff,

Could you please tell us which version of the controls you're using? Thanks

All the best,
Yana
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Cliff McManus
Top achievements
Rank 1
answered on 09 Feb 2012, 04:52 AM
RadControls for Silverlight Q3 2011
0
Cliff McManus
Top achievements
Rank 1
answered on 10 Feb 2012, 07:58 PM
OK ........Call me a newbie.......
I ran the upgrade wizard and upgraded the project to the current version I have on my machine and all works as expected.

Lesson Learned, dont assume the project downloaded is for the version of Telerik tools you have installed on your machine.

Issue closed.....
Cliff

0
Yana
Telerik team
answered on 13 Feb 2012, 10:06 AM
Hello Cliff,

I am glad that you've managed to fix the issue.

Greetings,
Yana
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Asked by
Cliff McManus
Top achievements
Rank 1
Answers by
Yana
Telerik team
Cliff McManus
Top achievements
Rank 1
Share this question
or