The SAP Table Tree control implements several standard drag-and-drop scenarios. The drag-and-drop behavior is defined through the
DragDrop property of the Table Tree object.Drag and Drop may be disabled, dragging may be enabled for
folders and/or leafs, dropping may be enabled for folder and/or leafs, or both drag and drop may be enabled for folders and / or leafs. If folders are drag-and-dropped, all sub-folders (that is, all children and grandchildren) are part of the data transport in a control specific format. Additionally all item data for the drag source node is stored in the data transport object in CF_TEXT format.If drag and drop happens between two SAP Table Tree controls, the control-specific formats ensure enhanced data transfers. All items defined with the same Name and
Type in the source control and in the destination control are transported to the destination control. This happens even if the sequence of the items in both controls is different. If the destination control has items that are not part of the data transport object, these items are created with default values.Drag and Drop operations within one control support move and copy operations. Drag and drop between two controls supports only copy operations as the default implementation.
The data transport scenarios mentioned also work across process boundaries. If the default drag-and-drop implementation is not sufficient, you can program event handlers for the
DragSourceFill, DragComplete, DropEnter and Drop events that satisfy more sophisticated demands.The compound stream created by a call to the SaveData method on a Node object may be used to insert new nodes into a different control. Again, all items with the same Name and Type in the control being loaded are fed by data from the stream.