hi team,
I want to ask user before drag and drop item from node to node. how is it possible ?
I want something like this :
But this code doesn't work because ask method is asynchronous and event will complete not depend on the user's action : yes or no.
My Env :
1. SGWTEE 2.5 (Evaluation) - build Date - 2011-08-02
2. GWT 2.3.0
3. Firefox 5.
__________________________
Regards,
Paata Lominadze
I want to ask user before drag and drop item from node to node. how is it possible ?
I want something like this :
Code:
orgTreeGrid.addFolderDropHandler(new FolderDropHandler() { @Override public void onFolderDrop(final FolderDropEvent event) { try { SC.ask("Warning ","Are you sure you want to move this item ?", new BooleanCallback() { @Override public void execute(Boolean value) { if (value){ SC.say("OK."); }else { event.cancel(); } } }); } catch (Exception e) { SC.say(e.toString()); } } });
But this code doesn't work because ask method is asynchronous and event will complete not depend on the user's action : yes or no.
My Env :
1. SGWTEE 2.5 (Evaluation) - build Date - 2011-08-02
2. GWT 2.3.0
3. Firefox 5.
__________________________
Regards,
Paata Lominadze
Comment