-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I put multiple="true" with checkmark="true" into my tree. I expected to see checkbox but radio button is displayed. I have no clue what I was wrong. I can clearly see multiple works in one of ZK example. The following is my code.
<tree id="productGroupId" width="500px" rows="5"
multiple="true" checkmark="true"
model="@load(vm.productGroupTreeModel)">
<!-- selectedItems="@save(vm.productGroupIds, before='ok')"> -->
<template name="model">
<treeitem>
<treerow>
<treecell label="@load(each.data.productGroupName)"/>
</treerow>
</treeitem>
</template>
</tree>
if you have used TreeModel
, then you to implement Selectable
and return true
in isMutiple()
.but if you use DefaultTreeModel
, which already implements TreeModel & Selectable
, you have to call treeModel.setMultiple(true)
for enabling it.
You need to add below code in your ViewModel Class.
productGroupTreeModel.setMultiple(true);
Asked: 2013-07-31 18:06:38 +0800
Seen: 33 times
Last updated: Aug 01 '13
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