0

How to notify "check all checkboxes" in a listbox MVVM

asked 2013-05-28 13:03:39 +0800

jhusson gravatar image jhusson
19 2

hello,

<listbox id="listbox" width="200px"
                        model="${vm.stmtModel}" multiple="true"
                        checkmark="true" hflex="min" onClick="@command('onClickStmt')">

When i click on listheader checkbox to check all, i do not receive the command notification ?? Any suggestion ?

j.

delete flag offensive retag edit

Comments

sjoshi, thank you very much !

It works fine ;)

jhusson ( 2013-05-28 13:50:16 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-05-28 13:35:12 +0800

psingh gravatar image psingh flag of India
963 8

updated 2013-05-28 13:43:13 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

use onSelect event in place of onClick event.Definitely, you will get command notification.

&lt;listbox id="listbox" width="200px"
                        model="${vm.stmtModel}" multiple="true"
                        checkmark="true" hflex="min" onSelect="@command('onClickStmt')"/&gt;
link publish delete flag offensive edit

Comments

WIll this method will fire on the header button i mean to say Select All checkbox

sjoshi ( 2013-05-28 13:44:27 +0800 )edit

yes..it will be called.

psingh ( 2013-05-28 13:49:21 +0800 )edit

How we can identify whether it is checked state or unchecked state ?

Senthilchettyin ( 2014-09-20 07:40:02 +0800 )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: 2013-05-28 13:03:39 +0800

Seen: 39 times

Last updated: May 28 '13

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