Unable to expand the tree

asked 2015-08-13 10:12:09 +0800

Rao gravatar image Rao
3 2

updated 2015-08-13 10:12:50 +0800

This is my tree code:

<tree id="tree" model="@bind(vm.tree)" mold="paging" pageSize="6" 
        visible="@bind(vm.displayTree)" >
            <treecol label="" />
        <template name="model" >
            <treeitem open="true">
                <treerow >
                    <treecell >



tree is the TreeModel coming from backend. I'm not able to expand the whole tree when this page loads. open="true" on treeitem isn't working. Kindly help.

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted

answered 2015-08-20 09:35:50 +0800

JoeHuang gravatar image JoeHuang
1126 2


This problem relate to the life cycle of zk components which is complicate. But the solution is easy. You can replace open="true" with open="@load('true')". Then, the tree initially expands.

link publish delete flag offensive edit

answered 2015-08-20 09:55:05 +0800

Rao gravatar image Rao
3 2

updated 2015-08-21 04:08:57 +0800

Super cool. Was stuck in this from past a week. Thanks a ton.

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




Asked: 2015-08-13 10:12:09 +0800

Seen: 22 times

Last updated: Aug 21 '15

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