Drag'n'drop from ListBox to ScheduleView with Resources

10 posts, 1 answers
  1. Sandi Markon
    Sandi Markon avatar
    101 posts
    Member since:
    Jul 2012

    Posted 05 Mar 2012 Link to this post

    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

  2. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 06 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Daniel
    Daniel avatar
    2 posts
    Member since:
    Mar 2012

    Posted 23 Mar 2012 Link to this post

    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.
  5. Sandi Markon
    Sandi Markon avatar
    101 posts
    Member since:
    Jul 2012

    Posted 27 Mar 2012 Link to this post

    I have provided a sample solution for this issue via support ticket # 527294.
    Thank you
  6. Answer
    Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 28 Mar 2012 Link to this post

    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 >>
  7. Filipe
    Filipe avatar
    16 posts
    Member since:
    Jun 2011

    Posted 05 Jun 2012 Link to this post

    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
  8. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 07 Jun 2012 Link to this post

    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 >>

  9. Filipe
    Filipe avatar
    16 posts
    Member since:
    Jun 2011

    Posted 07 Jun 2012 Link to this post

    Hello.

    The version I am using is the 2012.1.326.1050.

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

    Filipe
  10. Filipe
    Filipe avatar
    16 posts
    Member since:
    Jun 2011

    Posted 07 Jun 2012 Link to this post

    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

  11. Filipe
    Filipe avatar
    16 posts
    Member since:
    Jun 2011

    Posted 08 Jun 2012 Link to this post

    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

Back to Top
DevCraft banner