[GXT 2.2.5] ComboBox has no access to cancel query (dqTask) and can't stop tab select
ComboBox has no way for another class or a subclass to cancel the query (dqTask). Please provide a public or protected cancel method that will call dqTask.cancel() as this is a common requirement if the combo subclass needs to cancel query and collapse the combo (e.g. when a certain character / operator is encountered).
The closest method is triggerBlur() as it cancels and collpases, but it also blurs the component which is not always desired.
In my case the suggestions that the combo is returning are part of a formula and I want to cancel the query when an operator is detected, so the next operand will start a new query.
My current workaround is to use JSNI to access the private field.
*Update: An alternative would be stop tab being used to pick a suggestion as this
both picks an item and tabs to the next field (rarely what you want to do!).
Please allow the KeyNav to be set (rather than creating it anonymously in initComponent() ). Or allow the onTab() method of the KeyNav to have a flag to choose if tab is allow to pick options (allowTab).
Anonymous creation of the KeyNav prevents any subclass from "unbinding" this KeyNav to provide their own and it not very extension friendly. To workaround it I have to override onViewClick to ignore tab keyCodes.