Zdeno
4 Mar 2010, 2:58 AM
Hello
For manipulating with Nodes in TreePanel component i found functions what matched my requirements.
First one BeforeMoveNode have oldParent and newParent node, second one beforeNodeDrop can check rawEvent with Ctrl Key.
So my first question:
Is there any way to check CTRL key in beforemovenode function? I debuged all params by firebug but didnt find something that would help.
And now description of my problem:
When you have got 3 nodes in your tree, and you drag 3rd node and drop it between 2nd and 3rd node, why is function beforenodedrop fired and beforemovenode not? Is it a bug or how i can remove this issue when user can drag node and drop it to "same path"?
And another question:
Can i see when is any event fired? For example: function beforenodedrop is fired everytime before beforemovenode etc.
Thanks for help
Zdeno
For manipulating with Nodes in TreePanel component i found functions what matched my requirements.
First one BeforeMoveNode have oldParent and newParent node, second one beforeNodeDrop can check rawEvent with Ctrl Key.
So my first question:
Is there any way to check CTRL key in beforemovenode function? I debuged all params by firebug but didnt find something that would help.
And now description of my problem:
When you have got 3 nodes in your tree, and you drag 3rd node and drop it between 2nd and 3rd node, why is function beforenodedrop fired and beforemovenode not? Is it a bug or how i can remove this issue when user can drag node and drop it to "same path"?
And another question:
Can i see when is any event fired? For example: function beforenodedrop is fired everytime before beforemovenode etc.
Thanks for help
Zdeno