I want to allow users to drag multiple nodes from one tree to the other, but they don't want to have to hold the control (ctrl) key while doing it. Is there an easy way to do this?
The desired behavior is the same as with Windows File Explorer, where you can select multiple files/folders and drag them without needing to hold the ctrl key.
Hello Luis,
Thank you for posting in our community!
I have been looking into your description and I am not sure that I understand correctly what you are trying to achieve. It seems that the Windows File Explorer tree does not support multiple selection (multiple selection is available in the grid on the right side). Currently multiple selection could be enabled in the XamDataTree by setting NodeSelection property to Multiple. By design drag and drop is available on node basis and even though multiple nodes were selected only one node would be dragged. Would you please let me know if I am missing something in your scenario so I could investigate it further for you?
I was trying to refer to the ability to select and drag multiple items (folders and files) in Windows File Explorer content window, not in the File Explorer tree.
Yes, I have enabled multi-node selection in the xamDataTree but what we want is being able to drag those selected nodes to another xamDataTree without having to hold the Ctrl key down, as it is not very user-friendly.
I have spent some time investigating this issue further for you. It appears that currently this functionality is not available in the XamDataTree control. Because of the selection feature, the ctrl key should be hold. Otherwise when pressing on a particular node in the tree only it would be selected and eventually dragged. Please feel free to log this on our site for product ideas where other users can vote for the same functionality as well. Thank you.
Sorry if I wasn't clear, but I don't want to select multiple tree nodes with a rectangular mouse selection, selection works fine. I want to be able to drag already selected nodes from one xamDataTree to another one without having to hold the Ctrl key.
Thank you for the details they help me better understand the scenario. The multiple selection functionality is currently available when the user holds the ctrl key. You can suggest a new Product Ideas for implementing mouse rectangular selection in one of our future versions (or vote for existing ones) at http://ideas.infragistics.com. Please feel free to update this forum thread if you have any other questions.