Jun 14, 2016, 3:33 PM
[CLOSED] Treepanel drop, BeforeItemMove and request confirmation
Hi,
i can't request confirmation when i drag and drop one node on an other in listener BeforeItemMove
In this thread
https://www.sencha.com/forum/showthr...ng-as-expected
it seems to be a solution with
This is my function
Any idea?
Thanks
i can't request confirmation when i drag and drop one node on an other in listener BeforeItemMove
In this thread
https://www.sencha.com/forum/showthr...ng-as-expected
it seems to be a solution with
dropHandlers.wait = true
but for me it doesn't work.This is my function
var onBeforeItemMoveTreePanelInputs = function (dragNode, oldParent, newParent, index, eOpts) {
eOpts.wait = true;
Ext.Msg.confirm('Richiesta di conferma', 'Trasformare l\'input selezionato in sub-input?', function (btn) {
if (btn == 'yes') {
return true;
} else {
return false;
}
});
};
Any idea?
Thanks