PDA

View Full Version : Custom treeSorter prevents tree drag and drop and supercedes node events



Keith Chadwick
12 Mar 2011, 7:53 AM
I have a custom treeSorter than in essence sorts the tree nodes on a numeric attribute from a custom store in order to keep them in sync. The tree also has drag and drop enabled so that the user may override the sort. Apparently though the sorter is kicking in before the beforemovenode or any other event which would allow me to reset the the node attribute that it sorts on.

One possible solution would be to kill the treeSorter but not sure how to go about his as it does NOT appear to be in component manager nor is it an extension/plugin of the tree itself. If I could kill it on dragstart then that would work for me.

Any ideas/thoughts?

Cheers
Keith

Keith Chadwick
13 Mar 2011, 6:16 AM
My mistake the event is firing my function for beforeMoveNode was returning false due to an invalid test condition. Not enough coffee apparently.

Keith