The following example shows how you can expand/collapse branches in a Flex Tree control by clicking on the row instead of having to click on the disclosure/arrow icon.
Full code after the jump.
Continue reading ‘Opening branches by clicking rows in a Tree control in Flex’
The following example shows how you can create a simple image gallery in Flex using a Tree control and a SWFLoader control.
Full code after the jump.
Continue reading ‘Creating a simple image gallery with the 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’
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’