5 Replies Latest reply on May 4, 2009 9:57 PM by marcusmattingly

    ComboBox selected item text, refresh?

    marcusmattingly

      I have a combobox, with a few buttons next to it. Buttons are add, edit, and delete. Basically, when they click edit it allows them to edit the object currently selected in the combo. After they edit it I update the dataprovider of the combo by doing a setItemAt and setting it to the updated object.

       

      The problem is that the list itself appears updated when I drop down the list, however the text currently showing in the combo remains the old value. I worked around it by doing a combo.text = object.labelfield, but this seems like a hack. Is there not a way to tell the combo to refresh the text it is displaying based on the dataprovder?

       

      I tried combo.invalidateDisplayList, but it didn't seem to help.

       

      Any help appreciated. Thanks.

       

      Marcus