Exception during DragDrop

2 posts, 0 answers
  1. Dominic
    Dominic avatar
    9 posts
    Member since:
    May 2012

    Posted 08 Oct 2015 Link to this post


    sometimes we get a excpetion in the dragdrop hander of the radtreeview, but this is not reproducible.

    When this exception happened, I did not explicit drag and drop an item, so i assume I accidentially dragged and droped the same items during clicking (long clicking  and/or mouse moving at the same time)


    Das Objekt des Typs MS.Internal.ManagedObjectReference kann nicht in Typ System.String umgewandelt werden.
       bei Telerik.Windows.Controls.RadTreeView.get_TextDropIn()
       bei Telerik.Windows.Controls.TreeView.TreeViewDragDropOptions.GetDropOverItemText(RadTreeViewItem treeViewItem, DropPosition dropPosition)
       bei Telerik.Windows.Controls.TreeView.TreeViewDragDropOptions.UpdateDragVisual()
       bei Telerik.Windows.Controls.RadTreeView.DragDropHelper.OnDragOverItemHandler(Object sender, DragEventArgs e)
       bei Telerik.Windows.DragDrop.DragEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       bei Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       bei Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs)
       bei Telerik.Windows.RouteItem.InvokeHandler(RadRoutedEventArgs routedEventArgs)
       bei Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
       bei Telerik.Windows.EventRoute.InvokeHandlers(Object source, RadRoutedEventArgs args)
       bei Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
       bei Telerik.Windows.DependencyObjectExtensions.RaiseEvent(DependencyObject element, RadRoutedEventArgs e)
       bei Telerik.Windows.DragDrop.DragOperation.RaiseDragEvent(RoutedEvent dragEvent, DependencyObject target)
       bei Telerik.Windows.DragDrop.DragOperation.OnDragOver(DependencyObject sender)
       bei Telerik.Windows.DragDrop.DragOperation.DoDragOver(DependencyObject currentTarget)
       bei Telerik.Windows.DragDrop.DragOperation.OnMove(Point absolutePosition)
       bei Telerik.Windows.DragDrop.DragOperation.DragSourcetPreviewMouseMove(Object sender, MouseEventArgs e)
       bei Telerik.Windows.DragDrop.DragHelper.OnMouseMove(Object sender, MouseEventArgs e)
       bei MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       bei MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)

  2. Milena
    Milena avatar
    193 posts

    Posted 12 Oct 2015 Link to this post

    Hi Dominic,

    I am sorry to hear about the issues you are experiencing. 

    It's very hard for us to detect the root cause of this issue from the gives stack trace. Could you elaborate a bit more by giving us information about: 
    - which version of our UI for Silverlight are you using;
    - have you set TextDropIn property of RadTreeView, if so - you can see if you can reproduce the same issue when using its default value (not setting the property explicitly);
    - do you use custom Localization Manager and which culture you are using in your application (the issue could be connected to the Localization Manager)

    In addition, if it is possible for you - could you isolate this issue in a runnable sample that we could debug locally (or code-snippet and more information about declaring the TreeView)? This will allow us to investigate further the reason behind this behavior. 

    Thank you in advance for your cooperation.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top