on 01-20-2023 8:58 AM
I have a ComboBox. I have written a function for its change event, on a particular condition I need to clear the ComboBox selection and its value.
<ComboBox change="onChange"/>
onChange:function(oEvent){
if(someCondition is true){
oEvent.getSource().setValue("") // this trigger the onChange method again
//or
oEvent.getSource().clearSelection() // this does not clear the value
}
}
The above solutions have issue mentioned in comment.
Any solution for this ? Or de we have any event which will trigger on ComboBox popup close ?
Hi,
Did you try to call setSelectedKey("") of the combobox?
Br,
Radoslaw
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.