Focus event will not do the job for me when I populate my combo on focus event because
On selecting an item ajax request is submitted to server and based on response dom is updated by appending new elements.
And somehow focus event of combo is triggered automatically(unwanted). I thought by using click event I could avoid this problem.
What I wanted was to load data model used for combo when someone clicks combobox.
(ie populating combo when select is clicked). Click event is what I was looking for which was not there.
Searching for other options
What I wanted was to load data model used for combo when someone clicks combobox.
(ie populating combo when select is clicked).
i see... you should be able to use the beforequery event then.
note: the beforequery event fires only when the ComboBox's trigger is clicked. you'll also need to use the same handler which populates the store on the ComboBox's focus event as well (i.e. when the ComboBox's text input field is clicked).