RadDiagramContainerShape RadDiagramToolbox Drop Issue

4 posts, 0 answers
  1. Kent
    Kent avatar
    10 posts
    Member since:
    Jan 2012

    Posted 13 Feb 2014 Link to this post

    I am using the the RadDiagramContainerShape. I notice that when you drop a RadDiagramShape
    component from the RadDiagramToolbox onto a RadDiagramContainerShape that works fine if there is no other item in the RadDiagramContainerShape.  But if you happen to be dropping a RadDiagramShape into a RadDiagramContainerShape that already has an item in it.  You try dropping this new shape on top of the item already in the container it fails to put the new dropped shape into the container.  But instead puts it under the RadDiagramContainerShape.  Is there way to get it to put into the container not under it?  
  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 18 Feb 2014 Link to this post

    Hello Kent,

    Could you provide us with a runnable project with your implementation. This will allow us to test it locally and find the reason behind the issue. In the meantime you could take a look at the attached project which demonstrates drag and drop between a RadDiagramToolbox and a RadDiagram in an MVVM scenario.

    Regards,
    Martin
    Telerik
  3. UI for WPF is Visual Studio 2017 Ready
  4. Kent
    Kent avatar
    10 posts
    Member since:
    Jan 2012

    Posted 18 Feb 2014 in reply to Martin Link to this post

    I have a video showing this issue using the example you provided.  It is about 2 MB but I can't attach a video or zipped file with it in it to this reply.  Is there a way to send it to you another way?
  5. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 20 Feb 2014 Link to this post

    Hello Kent,

    We managed to reproduce the issue. However, this behavior is expected (e.g. in your shape you may have another control that handles the drop) and at this point we don't have plans to change it.

    As a workaround you can use the DradDropManager and add drop handler with some custom logic as in the attached project.
      
    Regards,
    Martin
    Telerik
Back to Top