Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9200539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:47:28+00:00 2026-06-17T22:47:28+00:00

Here is my code <?page title=MVVM Tree POC?> <zk> <borderlayout height=800px> <west size=25%></west> <center>

  • 0

Here is my code

<?page title="MVVM Tree POC"?>
<zk>
    <borderlayout height="800px">
        <west size="25%"></west>
        <center>
            <window apply="org.zkoss.bind.BindComposer"
                viewModel="@id('vm') @init('com.nagarro.controller.TreeController')"
                title="Dynamic Tree" border="normal">
                <tree multiple="true" checkmark="true" rows="5"
                    model="@bind(vm.employeeTreeModel)">
                    <treecols>
                        <treecol label="First Name" align="center" />
                        <treecol label="Last Name" align="center" />
                        <treecol label="Age" align="center" />
                        <treecol label="Index" align="center" />
                    </treecols>
                    <template name="model" var="node" status="s">
                        <treeitem checkable="true">
                            <treerow style="text-align:center;">
                                <treecell
                                    label="@bind(node.data.firstName)" style="text-align:left;" />
                                <treecell
                                    label="@bind(node.data.lastName)" />
                                <treecell label="@bind(node.data.age)" />
                                <treecell label="@bind(s.index)" />
                            </treerow>

                        </treeitem>
                    </template>
                </tree>

            </window>
        </center>
    </borderlayout>
</zk>

I checked the zkoss reference for the multiple selection property and made the necessary changes in the above zul file. Still it doesnt show checkboxes. Instead it shows only radiobuttons.

Also, I want to show checkboxes in front of some selected tree nodes and not all of them.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:47:29+00:00Added an answer on June 17, 2026 at 10:47 pm

    Use

    setMultiple(true)
    

    on the model instance returned by vm.employeeTreeModel not the tree it self.

    If you want just some to be checkable, change this

    <treeitem checkable="true">
    

    to something like that

    <treeitem checkable="@load(node.checkable)">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is how my code is: page.aspx: <asp:Image ID=Image1 runat=server /> Code behind: byte[]
Here is my main page code: <form><iframe name=iframe_pic src=iframe.html></iframe></form> Here is my iframe.html: <script
Here's the code for a simple page I have that is not working: <head>
Here is my code: public partial class Image : System.Web.UI.Page { protected void Page_Load(object
Here is the code I use when someone visits a product page on my
Here is link where i got a code for web-page content fetching. But i
Here is my code... basically it finds any page-NUMBER- within a variable and then
I am using ASP.NET page methods with jQuery. Here is my code, $.ajax({ type:
I want a php page to 'display' a pdf. Here is the code: <?php
I am trying to load generics within the aspx page. Here is my code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.