tree multiple="true" does not work

asked 2013-07-31 18:06:38 +0800

phdsong gravatar image phdsong
13 3

updated 2013-07-31 18:06:57 +0800

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"
                        <!-- selectedItems="@save(vm.productGroupIds, before='ok')"> -->
                        <template name="model">
                                    <treecell  label="@load(each.data.productGroupName)"/>
delete flag offensive retag edit


2 Answers

Sort by ยป oldest newest most voted

answered 2013-08-01 05:49:25 +0800

nsharma gravatar image nsharma flag of India
917 1 11

updated 2013-08-01 07:53:24 +0800

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.

link publish delete flag offensive edit

answered 2013-08-01 05:43:57 +0800

iamsudhir4u gravatar image iamsudhir4u flag of India
545 7

You need to add below code in your ViewModel Class.

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

1 follower



Asked: 2013-07-31 18:06:38 +0800

Seen: 32 times

Last updated: Aug 01 '13

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