Try using callLater to delay setting selectedIndex.  And maybe call
validateNow() first:

protected function colors_colorsResultsHandler(event:ResultsLists):void
{
  colorsCB.callLater(actuallySetSelectedIndex);
}

private function actuallySetSelectedIndex():void
{
  colorsCB.validateNow(); // may not be required
  colorsCB.selectedIndex = colors.lookupNdxByID(defaultColor);
}




On 8/16/16, 2:17 PM, "CodeGirl" <[email protected]> wrote:

>
>protected function colors_colorsResultsHandler(event:ResultsLists):void
>{
> colorsCB.selectedIndex = colors.lookupNdxByID(defaultColor);
>}
>
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/default-Index-for-ComboBox-
>or-DDL-when-DataProvider-data-comes-from-a-webservice-tp13321.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to