Hi,
tested with FF 18.0.2 and build from 2013-04-02.
I have a combobox with these (besides others) settings:
Please see also modified class called MultiFieldSearchSample from showcase.
My first problem is (based on your showcase called Multi-Field Search):
1. See that "Item (ComboBox)" has empty display value as "-".
2. Then select something from picklist.
3. Then delete this selection (Select all + delete) and hit key ESC. The empty display value "-" is shown correctly.
4. Then hit TAB key or change the focus on another filed, for example Item (Select) and you will see, that empty value "-" is gone. -> and this is the problem.
Second problem is the same, only without hitting the ESC key. So after deleting selected option and changing the focus to another field in form (by pressing TAB or with mouse) i want my combobox to have the empty value as "-".
Is this possible ? I think that my problems are coming from this setting "setAddUnknownValues(false)". With this setting as true everything is working like i need to. But i also want to take advantage from setAddUnknownValues(false). Can i have both, so showing empty display value and also setAddUnknownValues as false ?
Regards,
Fero
tested with FF 18.0.2 and build from 2013-04-02.
I have a combobox with these (besides others) settings:
Code:
filteredCombo.setAddUnknownValues(false); filteredCombo.setAllowEmptyValue(true); filteredCombo.setEmptyDisplayValue("-");
My first problem is (based on your showcase called Multi-Field Search):
1. See that "Item (ComboBox)" has empty display value as "-".
2. Then select something from picklist.
3. Then delete this selection (Select all + delete) and hit key ESC. The empty display value "-" is shown correctly.
4. Then hit TAB key or change the focus on another filed, for example Item (Select) and you will see, that empty value "-" is gone. -> and this is the problem.
Second problem is the same, only without hitting the ESC key. So after deleting selected option and changing the focus to another field in form (by pressing TAB or with mouse) i want my combobox to have the empty value as "-".
Is this possible ? I think that my problems are coming from this setting "setAddUnknownValues(false)". With this setting as true everything is working like i need to. But i also want to take advantage from setAddUnknownValues(false). Can i have both, so showing empty display value and also setAddUnknownValues as false ?
Regards,
Fero
Comment