Category Archives: DropDownList (Spark)

Setting the text roll over color on a Spark DropDownList control in Flex 4

In a previous example, “Setting the text roll over color on a ComboBox control in Flex”, we saw how you could change the text roll over color for a Flex MX ComboBox control by setting the textRollOverColor style.

The following example shows how you can change the text roll over color in the Spark DropDownList control’s hovered and selected states by creating a custom item renderer and setting the color style.

Continue reading Setting the text roll over color on a Spark DropDownList control in Flex 4

Setting the border color on a Spark DropDownList control in Flex 4

In a previous example, “Setting the border alpha on a Spark DropDownList control in Flex 4”, we saw how you could set the border alpha on a Spark DropDownList control’s popup menu in Flex 4 by setting the borderAlpha style.

The following example shows how you can set the border color on a Spark DropDownList control’s popup menu in Flex 4 by setting the borderColor style.

Continue reading Setting the border color on a Spark DropDownList control in Flex 4

Checking that an item is selected in the Spark DropDownList control in Flex 4

The following example shows how you can check whether the user has selected an item in the Spark DropDownList control in Flex 4 by setting the Boolean requiresSelection property to true or using a NumberValidator to check the DropDownList control’s selectedIndex property is greater than -1.

Continue reading Checking that an item is selected in the Spark DropDownList control in Flex 4

Creating three related Spark DropDownList controls in Flex 4

In a previous example, “Creating two related ComboBoxes”, we saw how you could create two or three related MX ComboBox controls in Flex 3 by binding to the previous ComboBox control’s selected item.

The following example shows how you can create three related Spark DropDownList controls in Flex 4 by using databinding and XML.

Continue reading Creating three related Spark DropDownList controls in Flex 4

Setting the width of the dropdown menu on a Spark DropDownList control in Flex 4

In a previous example, “Setting the width of the dropdown menu on a ComboBox control in Flex”, we saw how you could set the width of the dropdown menu on a Flex MX ComboBox control by setting the dropdownWidth property.

The following example shows how you can change the width of the Spark DropDownList control’s pop up menu so the pop up menu width matches the contents rather than the DropDownMenu button control’s width by setting the Boolean popUpWidthMatchesAnchorWidth property.

Continue reading Setting the width of the dropdown menu on a Spark DropDownList control in Flex 4