0

Listbox Event Problem Plz Help????

asked 2011-09-10 05:51:14 +0800

Vikrant gravatar image Vikrant
69

I have a list box with data to select
when i select listitem the selectedItem event generates successfully
But
when is slect the same listitem next time the selecteditem event does not generate
should i refresh the listbox every time i select listitem if yes then how?

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2011-09-10 06:35:49 +0800

Bobzk gravatar image Bobzk
444 1 8

Yes, that is the way listbox works - selecting an already selected item does not generate an event. You need to look at onChanging or onChanged or even onClick and work around it. Have a look at http://www.zkoss.org/forum/listComment/13946-A-really-annoying-feature-of-bandbox-listbox

Note that if you use mold=select on the listbox I think it does work but uses the standard browser type dropdown - maybe that is all you need.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2011-09-10 05:51:14 +0800

Seen: 90 times

Last updated: Sep 10 '11

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