PDA

View Full Version : [CLOSED] Drag - drop in Ext.Tree.Panel not working after store.reload()



andrej_marincic
3 Jun 2014, 7:59 AM
Ext version tested:
Ext 5

Browser versions tested against:
Chrome

Description:
DRAG - DROP between Tree nodes stops working properly after you reload tree store.

Steps to reproduce the problem:
1.) Go to: http://cdn.sencha.com/ext/gpl/5.0.0/build/examples/kitchensink/#tree-two
(http://cdn.sencha.com/ext/gpl/5.0.0/build/examples/kitchensink/#tree-two)2.) Select arbitrary node in the LEFT tree
3.) In debug console type: Ext.ComponentQuery.query('tree-two treepanel')[0].getStore().reload();
4.) Try to grab that selected tree node (the one you have selected before the store refresh) and drop it to RIGHT Tree. You will see strange behaviour. For instance, after the drop, node in the LEFT Tree should be removed but it is copied instead. Also there are some other problems, but i think if you solve this one, than everything will start working OK.


The result that was expected:
DRAG DROP would continue to work after store refresh.

The result that occurs instead:
DRAG DROP is not working properly after store refresh. After the drop, node in the LEFT Tree should be removed but it is copied instead. Also there are some other problems, but i think if you solve this one, than everything will start working OK.

mitchellsimoens
4 Jun 2014, 4:32 AM
Thanks for the report! I have opened a bug in our bug tracker.