SmartClient Version: v8.3p_2013-02-13/LGPL Deployment (built 2013-02-13)
Browser: Google Chrome 49.0.2623.112 m
I have a combo box item which has showPickListOnKeypress set to true. I would like to hide the pick list when the pick list results arrive if the value entered in the item exactly matches the corresponding field in one of the returned records. That way, tabbing off of the combo box wouldn't automatically select the first pick list result, but rather it would use the exact value the user entered. I have tried the following, overriding ComboBoxItem.dataArrived:
dataArrived: function(startRow, endRow, data) {
if (data.containsProperty("ItemID", this.getValue())) {
this.hidePicker();
}
}
This implementation isn't hiding the pick list. I noticed that hidePicker() is a method on ComboBoxItem, but isn't documented. Is there a way either to hide the pick list programmatically or to conditionally prevent it from appearing?
Browser: Google Chrome 49.0.2623.112 m
I have a combo box item which has showPickListOnKeypress set to true. I would like to hide the pick list when the pick list results arrive if the value entered in the item exactly matches the corresponding field in one of the returned records. That way, tabbing off of the combo box wouldn't automatically select the first pick list result, but rather it would use the exact value the user entered. I have tried the following, overriding ComboBoxItem.dataArrived:
dataArrived: function(startRow, endRow, data) {
if (data.containsProperty("ItemID", this.getValue())) {
this.hidePicker();
}
}
This implementation isn't hiding the pick list. I noticed that hidePicker() is a method on ComboBoxItem, but isn't documented. Is there a way either to hide the pick list programmatically or to conditionally prevent it from appearing?
Comment