Yoyo
4 Aug 2007, 3:39 AM
Hi there, it is my first post here.
At first sorry for my bad English.
I'm considering Ext for my next project - for one reason alone - Tree component. And before deciding I want to be sure if Ext will allow me to do such a thing:
User grabs a TreeNode to reorder.
After dropping it, request is send to server with reorder query.
If server responds with success state - well, nothing will happen - node will gain a new place.
If server responds with error state (or timeout) - node will back to its original position and error message will pop up.
I was browsing Api docs and found "beforemove" event in TreePanel (http://extjs.com/deploy/ext/docs/output/Ext.tree.TreePanel.html#event-beforemove) object, which lets me abort moving a node. The problem is that server requests will be asynchronous...
How do you deal with such things?
At first sorry for my bad English.
I'm considering Ext for my next project - for one reason alone - Tree component. And before deciding I want to be sure if Ext will allow me to do such a thing:
User grabs a TreeNode to reorder.
After dropping it, request is send to server with reorder query.
If server responds with success state - well, nothing will happen - node will gain a new place.
If server responds with error state (or timeout) - node will back to its original position and error message will pop up.
I was browsing Api docs and found "beforemove" event in TreePanel (http://extjs.com/deploy/ext/docs/output/Ext.tree.TreePanel.html#event-beforemove) object, which lets me abort moving a node. The problem is that server requests will be asynchronous...
How do you deal with such things?