Treeview select checkbox

Posted by: roman on 17 September 2019, 7:45 pm EST

    • Post Options:
    • Link

    Posted 17 September 2019, 7:45 pm EST

    How to bind treeview checkbox to itemsSource object property Checked?

  • Posted 18 September 2019, 3:10 am EST

    Hi,

    You need to set the ‘checkedMemberPath’ property of the TreeView to bind checkboxes to itemSource object property.

    Please refer to the following code snippet:

    let tree = new wjNav.TreeView('#theTree', {
            itemsSource: getData(),
            displayMemberPath: 'header',
            childItemsPath: 'items',
            showCheckboxes: true,
            checkedMemberPath: 'isSelected'
    });
    

    API reference:

    • checkedMemberPath property: https://www.grapecity.com/wijmo/api/classes/wijmo_nav.treeview.html#checkedmemberpath

    Regards

    Sharad

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels