I’m trying to use a mouseClicked event on a Dropdown List to run a script, which in turn queries a db table and returns a data set for the dropdown to display. My problem is that the mouseClicked even’t doesn’t fire if the dropdown already has focus and I click directly on it’s down arrow button, which then expands the dropdown. It does fire if I click the text of the dropdown to display the list instead of the button.
My goal is to update the dropdown’s list every time it is expanded. It will be somewhat infrequently used, but what I wish to display will change between each time it is expanded. Updating it on the window’s InternalFrameActivated event isn’t accurate enough as things could change while the screen is active as well.
I’ve tried binding the Data property to an expression which runs the script. It works, but that means I’m polling the database. Eventually there will be a factory full of clients running this script and polling is something I’d like to avoid as much as possible.