0

onChanging Event not fired on chosenBox

asked 2021-03-24 01:20:11 +0800

ziobleed gravatar image ziobleed
153 3

Hi

im using ZK 6.x

i have a Combobox.

i want that drop down menu shows all elements that contains the new characters entered not only that that starts with

i've tried variuos approaches:

es

  1. chosenBox.addEventListener(Events.ON_CHANGING, new EventListener...

  2. @Listen("onChanging=#chosenbox") public void ononChangingChosenbox(@ContextParam(ContextType.TRIGGER_EVENT) InputEvent event){

  3. @Listen("onChanging=#chosenbox") public void ononChangingChosenbox( InputEvent event){

  4. in zul page: <chosenbox id="chosenbox" autodrop="true" open="true" instant="true" onChanging= "onChanging()"

the event is never fired when i type new charathers in the chosenbox with all these approaches

delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
0

answered 2021-03-24 11:31:11 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2021-03-24 12:54:15 +0800

I think you're looking for the onSearching event. https://www.zkoss.org/wiki/ZKComponentReference/Input/Chosenbox#Supported_Events

here just a quick test (only onSearching will fire):

<zk>
  <chosenbox width="300px"
             onChanging="Clients.log(event.getName() + ' ' + event.getValue())"
             onSearching="Clients.log(event.getName() + ' ' + event.getValue())"
             />
</zk>
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2021-03-24 01:20:11 +0800

Seen: 9 times

Last updated: Mar 24 '21

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More