0

Zk ListCell with checkbox avoid onClick On listbox

asked 2015-11-19 13:44:21 +0800

javiut gravatar image javiut flag of Venezuela, Bolivarian Republic of
90 1 5

I have a simple code like this

<listbox nonselectableTags="checkbox">
<listitem self="@{each=i}"onClick='showView(event);'>
<listcell><checkbox/></listcell>

The problem is in the first column i have a checkbox inside a listcell and the listbox responds the onClick method to show a different view i would like to when onClick the checkbox do not fire the onClick on this listbox this problem can be avoid using a doubleClick instead of the single click but there is another approach?.

Sorry if this question is simple but i couldn't find a solution

delete flag offensive retag edit

Comments

http://zkfiddle.org/sample/hvn2q0/2-zk-oncheck-vs-onclick I don't see the problem here. Can you change the fiddle to your problem?

chillworld ( 2015-11-19 14:06:00 +0800 )edit

works ok with 7.0.61 or 8.0.0 but i have 6.5.2 try using 6.5.2 please.. you can see the problem

javiut ( 2015-11-19 14:24:08 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-11-20 07:59:42 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

A quick solution could be (cause onCheck is first triggered):

http://zkfiddle.org/sample/hvn2q0/3-zk-oncheck-vs-onclick

Greetz Chill.

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
1 follower

RSS

Stats

Asked: 2015-11-19 13:44:21 +0800

Seen: 28 times

Last updated: Nov 20 '15

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