Tag Archive for 'datadescriptor'

05
Apr

Opening branches by clicking rows in a Tree control in Flex

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’

04
Apr

Creating a simple image gallery with the Flex Tree control

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’

11
Feb

Determining if a check box menu item is toggled in a Flex PopUpButton control’s pop up menu

The following example shows you how you can determine if a check box menu item in a Flex PopUpButton control was checked or not by using the change event on the pop up menu along with the dataDescriptor property and isToggled() method.

Full code after the jump.

Continue reading ‘Determining if a check box menu item is toggled in a Flex PopUpButton control’s pop up menu’

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’