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
Hello Xabi,
The observablecollection implements the INotifyCollectionChanged Interface which triggers a collectionChanged event. This event is what is used on the datasource to trigger the update event. As long as you convert the datasource to an ObservableCollection, the data should update when changes are made.
I'm glad to hear you were able to get it working.
Thanks again for contacting Infragistics.
Regards,JonInfragistics, Inc.http://es.infragistics.com/help/
Sorry, i've converted the linq result to ObservableCollection and now it is working.
Thanks!!
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 HogueInfragistics, Inchttp://es.infragistics.com/help