checkboxes.template String|Function

The template which renders the checkboxes. Can be used to allow posting of additional information along the TreeView checkboxes.

The fields which can be used in the template are:

  • item - the data item of the given node
  • treeview - the TreeView options

Example - specify a different name for each checkbox, bound to the item id

<input id="dropdowntree" />

<script>
    $("#dropdowntree").kendoDropDownTree({
        dataSource: [
            {
                id: 1, text: "foo", items: [
                    { id: 2, text: "bar" },
                    { id: 3, text: "bar1" }
                ]
            }
        ],
        checkboxes: {
            template: "<input type='checkbox' name='checkedFiles[#= item.id #]' value='true' />"
        }
    });
</script>
In this article