I have a widget with three combo boxes. i need to keep a specific value as a default value. i added the following two line of code in fillComboBoxGovs() function
cbGovName.selectedIndex=1; fillComboBoxDist();
i attached the code of the widget. its should be a little update but i'm new in flex and stuck with this.
Sorry i forget to explan that the widget work correctly for the first time but if i lunch the widget again the first combobox empty. I want to keep the default value in the first combo box.
Thank you. I called fillComboBoxGovs() function and the default value displayed. but once i click on widget seems setBusyCursor() function fired and widget hang-up. ?
Before you made the change I suggested did the first combobox have the values still when the widget was reopened and the issue was only that the default value was not selected (did the combobox still have all the values)?
Yes before and after your suggestion the combobox has values. After the update you suggest the default value displayed but widget seems hang-up the first time i open it. And work correctly the second time i reopen it.
Yes before and after your suggestion the combobox has values. After the update you suggest the default value displayed but widget seems hang-up the first time i open it. And work correctly if i open another widget before reopen it.
If the combobox is still populated then instead of running the fillComboBoxGovs() again, try just setting the selectedIndex on the Combobox instead, on the widget open function.