-
FEATURED COMPONENTS
First time here? Check out the FAQ!
<tree model="@load(vm.treeModel)" rows="10" multiple="true" checkmark="true">
There are only radio boxes, not multiple boxes.
when using a TreeModel
the model takes precedence over component properties.
I assume you are using DefaultTreeModel, which implements the Selectable
interface (including the Selectable.isMultiple()
method).
If that's the case then you simply have to call treeModel.setMultiple(true)
in your viewModel and tree will enable multiple selection (handled by the TreeModel
).
You can further remove the multiple="true"
attribute in your zul code, since it's overridden by the TreeModel anyway.
Asked: 2020-08-13 12:21:37 +0800
Seen: 7 times
Last updated: Aug 14 '20
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