Aug 07, 2012, 7:36 AM
[CLOSED] Drag/Drop - Grid to Treecontrol example
When Dragging from Grid to Tree - The column is delete as it should but when dragging from tree to grid the column is not deleted from the tree
To replicate drag a column from grid to a folder in the tree, and back to the grid and press the "-" and "+" then the column is back again.
Can correct the issue by adding the following in "beforenodedrop"
https://examples2.ext.net/#/DragDrop/Grid/Grid_to_Tree/
To replicate drag a column from grid to a folder in the tree, and back to the grid and press the "-" and "+" then the column is back again.
Can correct the issue by adding the following in "beforenodedrop"
var item = data.view.store.treeStore.tree.getRootNode().findChild('ID', data.records[0].data.ID, true);
var parentNode = item.parentNode;
item.remove();
// To update the +/- status
if (!parentNode.hasChildNodes()) {
parentNode.set('leaf', true);
}
https://examples2.ext.net/#/DragDrop/Grid/Grid_to_Tree/
Last edited by Daniil; Aug 07, 2012 at 8:41 AM.
Reason: [CLOSED]