Revision history [back]

click to hide/show revision 1
initial version

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

Rao gravatar image Rao

Unable to expand the tree

This is my tree code:

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

                        <button sclass="without-border"
                            iconSclass="z-icon-search-plus"
                            onClick="@command('edit',id=each.id)">
                        </button>

                        <confirm title="${labels.confirm.label}"
                            sclass="btn-bordertransparent"
                            message="${labels.confirm.message}"
                            iconSclass="z-icon-trash-o icon-black"
                            onYes="@command('delete',id=each.id)">
                        </confirm>

                        <label>${each}</label>

                    </treecell>
                </treerow>
            </treeitem>
        </template>
    </tree>

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.

Unable to expand the tree

This is my tree code:

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

                        <button sclass="without-border"
                            iconSclass="z-icon-search-plus"
                            onClick="@command('edit',id=each.id)">
                        </button>

                        <confirm title="${labels.confirm.label}"
                            sclass="btn-bordertransparent"
                            message="${labels.confirm.message}"
                            iconSclass="z-icon-trash-o icon-black"
                            onYes="@command('delete',id=each.id)">
                        </confirm>

                        <label>${each}</label>

                    </treecell>
                </treerow>
            </treeitem>
        </template>
    </tree>

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.

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