If you select an entry, such as "Red", then click on the "Reset Combo Box" button, the selected entry in the combo box is cleared.
However, it should also remove any error message for the combo box, but this error message is not getting removed.
To use this component in a list-based component, such as a List or Data Grid, create an item renderer.
to a value not allowed by your validator, turning the validator on and expecting it not to validate. It might be better to just disable the validator in the in reset CB(), hoping it would get set back to "This field is required" again when the validator was run, but it remained empty forever after. I expect the validator to always run, but just clear the error after the fact.
Not sure what you mean by disable in the click and re-enable in a change (could you modify the code?
A way to fix this with the mx combobox would be to just use a space or use actionscript to set it because of the way mxml parses string info into properties.
An empty string is essentially equal to null in mxml.
For more information, see Basics of mobile skinning.
The Combo Box control is a child class of the Drop Down List Base control.I want to give validations to the spark combobox when user enters a value other than the value in the dataprovider of that combobox. I used ur code but now the problem is i also used change='index Change Handler(event)'; along with text Input="change(event)" but now when nothing is selected change event should not get called but currently it is getting called. Also it could be more helpful if u tell me how to give validation error with red border rather than showing in Alert. Lastly cant i use a string validator to determine whether user entered value is in the dataprovider of combobox so that i can give source to the string validator.Can any one give me the code how to give validation if user enters a value other than the value in the dataprovider and on focus change validation should occur. Actually i have lot of comboboxes that are created dynamically so when user enters wrong values in the combobox and presses save button all validation errors should come as in string validator. I assumed that asking for an AS3 solution meant it was an AS3 object.However, if you are starting/using Flex, you do want to use the tools that Flex provides.Note: The Spark list-based controls (the Spark List Base class and its subclasses such as Button Bar, Combo Box, Drop Down List, List, and Tab Bar) do not support the Basic Layout class as the value of the Define a custom Spark item renderer Differences between mobile and desktop item renderers Working with item renderers Using Spark list-based controls Defining the children of a list-based control Controlling the text displayed for each data item Modifying the children of a list-based control Setting the layout Working with list events Working with the selected item Working with the caret item Working with item renderers Using a mobile item renderer with a Spark list-based control Spark Combo Box control Spark Combo Box control user interaction The scroll snapping mode currently in effect for this Scroller Changing this property to anything other than "none" may result in an immediate change in scroll position to ensure an element is correctly "snapped" into position.