Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Greg Simmons on Jan 25, 2008 11:03
open dhtmlx forum
Clearing the combo box does not readd all options to the dropdown

If I select a value in dropdown of the combo box, the only value that shows in the dropdown is the selected value. That's good.

If I clear the value in the combo box and then click the drop down button the only value that shows in the dropdown is the last value that was selected.

I would like to see all of the values again when the combo box value has been cleared.

How can I do this?

Answer posted by Stanislav on Jan 25, 2008 15:49
If you have a combobox in filtering mode , just add next line after setting new text, to force list of options update
    combo.filterSelf();
Answer posted by Greg Simmons on Jan 29, 2008 09:56
I'm not sure at what place in the code I should put this.  The problem is if I delete the text from the combo (input) with either the delete or backspace key the list doens't refresh.  It doesn't appear that deleting the current selection manually from the input field causes any events to fire.  Where should I put the recommended code?
Answer posted by Support on Jan 31, 2008 06:06
You need such command only if you setting new value by js API, in case of manual changing value - it must work automatically.
If problem still occurs for you - please provide any kind of sample.