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

Drag'n'drop from ListBox to ScheduleView with Resources

9 Answers 143 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sandi Markon
Top achievements
Rank 1
Sandi Markon asked on 05 Mar 2012, 11:04 AM
dragging a listboxitem over schedulerview with resources causes serious error on mouseover:

-----------------------------------------------
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Mon, 5 Mar 2012 09:58:58 UTC

Message: Unhandled Error in Silverlight Application 
Code: 4004    
Category: ManagedRuntimeError       
Message: System.ArgumentNullException: Value cannot be null.
Parameter name: source
   at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
   at Telerik.Windows.Controls.CollectionExtensions.HaveSameElementsAsSet[T](IEnumerable`1 c1, IEnumerable`1 c2)
   at Telerik.Windows.Controls.DragDropHelper.<GetHighlightSlotsForDrop>d__d.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Telerik.Windows.Controls.DragDropHelper.GetDestinationSlotsForDrop(DragDropState state, IEnumerable`1 sourceResources, Point relativeDestinationPoint, TimeSpan offsetFromAppointment)
   at Telerik.Windows.Controls.DragDropHelper.GetDestinationSlots(DragDropState state, Point& relativeDestinationPoint, IPayload payload)
   at Telerik.Windows.Controls.DragDropHelper.GetDestinationSlots(DragDropState state, Point relativeDestinationPoint, IPayload payload)
   at Telerik.Windows.Controls.DragDropHelper.GetDestinationSlots(Object data, Point relativeDragPoint)
   at Telerik.Windows.Controls.DragDropHelper.OnDragOver(Object sender, DragEventArgs e)
   at Telerik.Windows.DragDrop.DragEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs)
   at Telerik.Windows.RouteItem.InvokeHandler(RadRoutedEventArgs routedEventArgs)
   at Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
   at Telerik.Windows.EventRoute.InvokeHandlers(Object source, RadRoutedEventArgs args)
   at Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
   at Telerik.Windows.DependencyObjectExtensions.RaiseEvent(DependencyObject element, RadRoutedEventArgs e)
   at Telerik.Windows.DragDrop.DragOperation.RaiseDragEvent(RoutedEvent dragEvent, DependencyObject target)
   at Telerik.Windows.DragDrop.DragOperation.OnDragOver(DependencyObject sender)
   at Telerik.Windows.DragDrop.DragOperation.DoDragOver(DependencyObject currentTarget)
   at Telerik.Windows.DragDrop.DragOperation.DragSourcetPreviewMouseMove(Object sender, MouseEventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)     
----------------------------------------------- 

trace doesn't show any positions within my own code.

it works fine if i remove resources and display only days in header, but i need an appointment to be linked with the persons column when dropped on view. is that expected behaviour in certain conditions or does it remind you of any usefull hints? using 2012 Q1.

thanks

9 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 06 Mar 2012, 09:04 AM
Hi there,

This should works as expected. i suggest you send us sample running project illustrating the issue to test it locally.
We will review it and provide you with a solution.

Greetings,
Rosi
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
Daniel
Top achievements
Rank 1
answered on 23 Mar 2012, 07:12 PM
hello, i got the same problem, actually i used one of your test example about drag and drop with schedule view and listbox that worked just fine, and i have just added resources (group) to the scheduleview and now as soon as i drag the item from the listbox to the scheduleview i get a client side error (not catched by V.S.) equal as the firt post here, like, something is null...
 please i would appreciate any feedback. thanks and regards.
0
Sandi Markon
Top achievements
Rank 1
answered on 27 Mar 2012, 11:42 AM
I have provided a sample solution for this issue via support ticket # 527294.
Thank you
0
Accepted
Rosi
Telerik team
answered on 28 Mar 2012, 09:22 AM
Hi,

Thank you for bringing this to our attention.

This is a bug in our control and we will fix it for the next internal build that will be available next week.

Your Telerik points have been updated.

All the best,
Rosi
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
Filipe
Top achievements
Rank 1
answered on 05 Jun 2012, 02:51 PM
Hello, I have the same problem reported on this thread.

I am draggging from a RadPanelGroup to a Radschedulerview with grouping and filtering.

The error is exactly the same. I looked for a fix, but I didn't found.

Is there already a solution for this?

Thanks

Filipe
0
Yana
Telerik team
answered on 07 Jun 2012, 10:47 AM
Hi Filipe,

Which version of the controls exactly you're using? Have you tried the latest internal build?

Regards,
Yana
the Telerik team

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

0
Filipe
Top achievements
Rank 1
answered on 07 Jun 2012, 06:43 PM
Hello.

The version I am using is the 2012.1.326.1050.

I think it's the last one, isn't it?

Filipe
0
Filipe
Top achievements
Rank 1
answered on 07 Jun 2012, 11:35 PM
Hello.

I also started trying to use RADDragDropManager. But I don't have de source and destination controls in the same view. They are in different views and in the destination view, where the scheduler is, it doesn't catch the dragged item.

Does the DragDropManager allow dragging from a view and drop the dragged item in the scheduler on another view? If yes, How?

I am using the version 2012.1.326.1050 of silverlight.

Thanks

Filipe

0
Filipe
Top achievements
Rank 1
answered on 08 Jun 2012, 04:52 PM

Hello.

I just solved the problem.

I was using two different views, but I was using the appointment converter on the view where the source control was. I stopped using date converter and started using only the SchedulerViewDragDropBehavior with the ConvertDraggedData method. That solved the error and now I can drag the appointment into the Scheduler with or without resources grouping.

You can close this issue.

 Thanks

Filipe

Tags
ScheduleView
Asked by
Sandi Markon
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Daniel
Top achievements
Rank 1
Sandi Markon
Top achievements
Rank 1
Filipe
Top achievements
Rank 1
Yana
Telerik team
Share this question
or