Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Moving XamTreeItem between several XamTrees
posted

Hi!


I'm trying to create a drag and drop action between different Xamtrees. My idea is that the user can move XamtreeItems between these, (each xamtree represents a situation: pending, started, stopped, etc...)

I'm using ItemDragEnded event, but this event cant recognize targetitem. Too, the icon showing when I try to drag and drop the xamtreeitem to other Xamtree is the "invalid" icon. Only can drag and drop into the same Xamtree.

Isdraggable=true etc.. is active.


So, what can be the problem? My version of infragistics for silverlight is 12.1

Thanks and regards!


Xabi

 

 

 

 

Parents
No Data
Reply
  • 570
    Verified Answer
    posted

    Hello Xabi,

    Thank you for contacting Infragistics Support!

    The Drag and Drop functionality you are attempting to achieve requires the use of a DragDropManager and you would need to enable each tree as a DragTarget and each node in the tree as a DragDropSource.  However, this is not required if you use our newer XamDataTree control. The XamDataTree implements the IsDragSource functionality and will allow you to more easily achieve the results you are aiming for.

    I have attached a sample with two XamTrees and two XamDataTrees.  The XamDataTrees implement the functionality that you are looking for.

    Sincerely,

    Jon Hogue
    Infragistics, Inc
    http://es.infragistics.com/help

    DragAndDropXamTrees.zip
Children