Tag Archive for 'isbranch'

16
Jan

Preventing branches from being selected in a Flex Tree control

The following example shows you how you can prevent users from selecting the branch (folder) items in a Tree control in Flex by listening for the itemClick event and using the Tree class’s dataDescriptor.isBranch() method to determine whether the currently selected item is a branch, and if so, deselect the item.

Full code after the jump.

Continue reading ‘Preventing branches from being selected in a Flex Tree control’

30
Nov

Using the isBranch() method to determine if a Tree item is a branch or leaf

The following example shows how you can use the isBranch() method to determine if a specific node in a Tree control is a branch (folder) or leaf (item).

Full code after the jump.

Continue reading ‘Using the isBranch() method to determine if a Tree item is a branch or leaf’

29
Nov

Dragging and dropping items in a Flex Tree control

The following example shows you how you can reorder nodes in a Flex Tree control by setting the dragEnabled, dropEnabled, and dragMoveEnabled properties.

Full code after the jump.

Continue reading ‘Dragging and dropping items in a Flex Tree control’