0

Deselect a listbox item once clicked by clicking elsewhere

asked 2012-08-06 22:52:06 +0800

Spacekangaroo gravatar image Spacekangaroo
21

Hallo guys,

So I've been running through the ZK tutorials with code largely the same to wait can be seen in the end result here http://books.zkoss.org/wiki/ZK_Getting_Started/Creating_a_Database-driven_Application

The issue I have is, I click an item - the item is then selected until I refresh the page. I want to be able to have the selectedItem be deselected through clicking elsewhere or on it again and when I click update for the entry.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-08-07 00:11:35 +0800

jj gravatar image jj
638 3

Maybe catching the onClick event of the entire page?

link publish delete flag offensive edit

answered 2012-08-17 04:08:07 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

Hi, spacekangaroo:
you shall be able to cancel a selection by clicking a selected item again.
Tyr the demo:
http://www.zkoss.org/zkdemo/listbox/selection_control

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: 2012-08-06 22:52:06 +0800

Seen: 186 times

Last updated: Aug 17 '12

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