DragAndDrop between treeview and treelistview

10 posts, 0 answers
  1. Cristina
    Cristina avatar
    8 posts
    Member since:
    Oct 2010

    Posted 08 Nov 2010 Link to this post

    Hi, I'm trying to make an example of DragAndDrog between a RadTreeView and a RadTreeListView, but so far I've failed. You could send me some examples? Thank you very much
  2. Cristina
    Cristina avatar
    8 posts
    Member since:
    Oct 2010

    Posted 09 Nov 2010 Link to this post

    Hi could put the full code example "Implement Drag and Drop Between TreeView and Other Controls." I'm trying to make it work but I could not. Thank you very much
  3. DevCraft banner
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Nov 2010 Link to this post

    Hi Cristina,

     Have you checked this demo?

    All the best,
    Vlad
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  5. Cristina
    Cristina avatar
    8 posts
    Member since:
    Oct 2010

    Posted 09 Nov 2010 Link to this post

    Mr. Vlad've seen all the shows, and read all the manuals they have. But there is no concrete example of DragAndDrop between a TreeView and a TreeListView. I've also tried to run the example is "Implement Drag and Drop Between TreeView and Other Controls" Silverlight manual but I can not accomplish. The truth is no longer what else to do. I would greatly appreciate a prompt response.
  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Nov 2010 Link to this post

    Hi,

     I'm not sure what's the problem - can you post more info? Do you get any exceptions? Can you post the exact problematic code? 

    Sincerely yours,
    Vlad
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  7. Cristina
    Cristina avatar
    8 posts
    Member since:
    Oct 2010

    Posted 09 Nov 2010 Link to this post

    Mr Vlad, the code I have is what appears in the Manual of Silverlight "How to: Implement Drag and Drop Between TreeView and Other Controls" (http://www.telerik.com/help/silverlight/radtreeview-how-to -implement-drag-and-drop-between-treeview-and-other-controls.html). And the error I get is the following: "object reference not set to an instance of an object
    use the new keyword to create an object instance
    check to determine if the object is null Before calling the method
    get general help for this exception. "
    Chances are you are doing something wrong or something is missing me, so it was my concern if you could send me a complete project with that code, as I've seen it done in some other opportunities, to be compared with the mine because the website is missing some things such as filling the TreeView and GridView.
    Again, thank you very much
  8. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Nov 2010 Link to this post

    Hello,

     Can you post the stack trace of the exception? More info about your controls version will be helpful as well. 

    Best wishes,
    Vlad
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  9. Cristina
    Cristina avatar
    8 posts
    Member since:
    Oct 2010

    Posted 09 Nov 2010 Link to this post

    Is this what I ask?

    System.NullReferenceException was unhandled by user code
      Message=Object reference not set to an instance of an object.
      StackTrace:
           at SilverlightApplicationDrag_and_Drop.MainPage.RadGridView_OnDropInfo(Object sender, DragDropEventArgs e)
           at Telerik.Windows.Controls.DragDrop.DragDropEventArgs.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.Controls.DragDrop.RadDragAndDropManager.RaiseDropInfo()
           at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnDrop()
           at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnCoverRectangleMouseLeftButtonUpInternal()
           at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnCoverRectangleMouseLeftButtonUp(Object sender, EventArgs e)
           at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
           at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
      InnerException: 

    I'm working with. Net 2010, Silverlight 4 and the latest version of Telerik controls.

    Will there be any chance that you can publish the entire project?

    Thanks
    (Sorry for English. I have little knowledge of the language)
  10. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Nov 2010 Link to this post

    Hi,

     Can you check using the debugger what is null in this event handler (RadGridView_OnDropInfo)?

    All the best,
    Vlad
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  11. jnh999
    jnh999 avatar
    29 posts
    Member since:
    Apr 2010

    Posted 16 Dec 2010 Link to this post

    I have posted a sample project to demonstrate drag and dropbetween RadTreeListView and RadTreeView in Code Library. http://www.telerik.com/community/code-library/silverlight/draganddrop/drag-and-drop-between-radtreelistview-to-radtreeview.aspx.  This was my prototype for the app that I am working on.  Most of the drag and drop operation is handled internally by the RadDragAndDropManager and there are not much custom code in it.  Hope that helps.
Back to Top
DevCraft banner