View Full Version : Setting TreeNode property (allowDrop) dynamically?
Darklight
16 Oct 2007, 1:43 AM
Hey, is there a way to set the "allowDrop" property of a TreeNode after it has been created?
Thanks in advance!
evant
16 Oct 2007, 3:12 AM
It kind of depends, can you explain a bit more about what you're trying to do?
Darklight
16 Oct 2007, 3:19 AM
i have 2 trees, one only allows Drop on the root node, the other only allows it for nodes directly under the root node.
do i have to solve this via the 'beforenodedrop' event (checking each node) or can i set the property for a Node once it's been dropped (since i then know if i want to allowDrop for it or not).
Hope I didn't confuse anyone ;D
evant
16 Oct 2007, 3:22 AM
That's what I was going to suggest, it's probably the best way to do it.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.