ComboBox Behavior: Flash Bug or Programming work-around?

Discussion created by jfaron44 on Jun 1, 2010
Latest reply on Jun 1, 2010 by jfaron44
I adopted Robert's Search Widget with drop-down as in this thread:http://forums.esri.com/Thread.asp?c=158&f=2421&t=289747&mc=6#msgid901640. I then updated the Search Widget with floating Datagrid, and I thought that all was good, until I discovered that the child box (id DropDownSel) exhibits strange behavior as follows, and as demonstated graphically in the attached pdf.

If I do not actually select an item in the 'child' box (id DropDownSel), and then I navigate the Parent (combo Box id cboLayerText) to a different layer source , only the first item will appear as expected in the 'child' box, but when you select the dropdown arrow, it populates with items from the prior layer source, i.e. the prior layer list, which is defined in the SearchXML as <dropdown>.

What is stranger still, if I click on one of those values from the prior list, the actual value that loads is from the current 'parent' layer list, and the list in the combobox is refreshed. I have tried various code fixes involving refresh, and even extended the combo box following advise from a blog post, but I cannot get this to work correctly. Another way of putting this is that the user must make a selection of an item in the child list other than the first item, or if he/she navigates the Search layer parent list to another layer, the values in the child box will not load as expected, as described above. The pdf demonstrates this with screen shots.

I know that combo box controls are the source of frequent issues with Flash, but I hope that someone can suggest a fix.

Jim Faron
Austin Independent School District