Approved
Last Updated: 02 Jul 2019 07:33 by ADMIN

Bug report

Unexpected change event triggering when using value() method of remote datasource DropDownTree with checkboxes and autoBind false

Reproduction of the problem

  1. Run the following Dojo
  2. Click on Load button to set the value of the Child item

Current behavior

Script runs through datasource read else, then through datasource read if and then DropDownTree's change event is fired.

NOTE: if there is no setTimeout or if the two nodes are loaded at the same time with no if else clause, then the issue is not reproducible.

Expected/desired behavior

DropDownTree's change event is not fired, when value() method is called.

Environment

  • Kendo UI version: 2019.2.619
  • Browser: [all]

Similar fixed issue: #4352

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