-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Requirement: On selecting a tree row(without using checkbox), should check the single row and on selecting the tree checkBox should select all child including current row.
Implemented:
In a method xxxx() called through onSelect event, selecting/de-selecting all the child elements of currently selected row.
Problem: As there is only 1 event that is "OnSelect" which is fired on selecting tree row as well as clicking on tree check box, hence unable to implement the requirement.
(Also tried nonselectableTags="*" property of tree but it does not allow to select the current row and in this case if we can get the current row object (i.e. selected treeitem), then can use mehod YYYY() called through onClick event to select only single row)
Is there any solution to implement the above requirement.
Implement a treerenderer where you set an checkbox before your label.(or do all the checkbox need to be inline)
Then you could give the checkbox an eventlistener.
Greetz chill.
Asked: 2014-08-13 12:21:39 +0800
Seen: 12 times
Last updated: Aug 14 '14
Large Tree with dynamic columns
Tree width lost after changing col width on maximized panel
MVVM tree example to show add/insert/delete/move/drag?
Error writing 'checked' on type org.zkoss.zul.Checkbox [closed]
Problem with changing MVVM tree model
zk framework: how to load zul pages from WEB-INF under directory zul