Pending Review
Last Updated: 24 Dec 2018 07:24 by ADMIN
Created by: Samuel
Comments: 1
Category: DropDownTree
Type: Feature Request
2

I use the below template to render nodes (so that root nodes do not have a checkbox), but when I click checkAll button the root node(s) content are also displayed as selected

 

You should provide an event to custom handle this behavior and ignore nodes unselectable

 .Checkboxes(setting => setting
                                                .CheckChildren(true)
                                                .Template("# if (item.level() > 0) { #" +
                                                            "<input type='checkbox' #= item.checked ? 'checked' : '' #>" +
                                                            "# item.text = item.SymptomName #" +
                                                            "#}else{#" +
                                                                "# item.text = item.LocationName #" +
                                                            "#}#"
                                                )
                                )

 

Keep up the awesome work !

Pending Review
Last Updated: 04 Feb 2019 15:43 by ADMIN
Created by: Juan
Comments: 1
Category: DropDownTree
Type: Bug Report
0

Hi,

I have a DropDownTree with checkboxes, like so:

                    $("#cbxWorkZones").kendoDropDownTree({
                        placeholder: "Select Work Zones...",
                        dataTextField: "name",
                        dataValueField: "id",
                        valuePrimitive: true,
                        checkboxes: true,
                        checkAll: true,
                        autoClose: false,
                        autoBind: false,
                        dataSource: data.workZones
                    });

 

I get an instance of it like so:

    var wz = $('#cbxWorkZones').data("kendoDropDownTree");

I evaluate value and get this: []  meaning, there are no values selected.

Then I set its value like so:

    wz.value(["8", "6"]);

After setting the values, I evaluate value again, and I get this: [8,6,8,6]

Why are the values duplicated?

Thanks!

Juan