From the monthly archives:

November 2007

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.

[click to continue…]

{ 7 comments }

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.

[click to continue…]

{ 0 comments }

The following example shows you how you can create a Tree control in Flex with variable row heights by setting the variableRowHeight and wordWrap properties.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows you how you can toggle the root node in a Flex Tree control’s data provider by setting the showRoot property.

Full code after the jump.

[click to continue…]

{ 2 comments }

The following example shows you how you can expand tree nodes (recursively, no less) by selecting an item from a ComboBox control.

Full code after the jump.

[click to continue…]

{ 6 comments }

The following example shows how you can use the itemDoubleClick event to open the selected Tree node in Flex.

Full code after the jump.

[click to continue…]

{ 3 comments }

The following example shows you how you can override a specific node’s icon in a Flex Tree control ysing the Tree class’s setItemIcon() method.

Full code after the jump.

[click to continue…]

{ 11 comments }

The following example shows you how you can listen for when the user opens or closes a node in a Flex Tree control by listening for the itemOpen and itemClose events to be dispatched.

Full code after the jump.

[click to continue…]

{ 0 comments }

Controlling a Tree control’s item indentation in Flex

by Peter deHaan November 27, 2007

The following example shows how you can control the amount of indentation for a child node in a Flex Tree control.
Full code after the jump.

Read the full article →

Alternating row colors in a Flex Tree control using the depthColors style

by Peter deHaan November 27, 2007

In a previous example, “Alternating row colors in a Flex Tree control using the alternatingItemColors style”, we saw how you can alternate row colors by setting the alternatingItemColors style.
The following example shows how you can alternate item colors based on the item’s depth in a Flex Tree control by setting the depthColors style to an [...]

Read the full article →

Alternating row colors in a Flex Tree control using the alternatingItemColors style

by Peter deHaan November 27, 2007

The following example shows how you can alternate item colors in a Flex Tree control by setting the alternatingItemColors style to an array of colors.
Full code after the jump.

Read the full article →

Changing the open duration and easing function on a Flex Tree control

by Peter deHaan November 27, 2007

The following example shows how you can change the open duration and open easing function on a Tree control in Flex by setting the openDuration and openEasingFunction styles.
Full code after the jump.

Read the full article →