Completed
Last Updated: 27 Aug 2021 11:02 by ADMIN
Release 2020.R3.SP.next
Matthew
Created on: 20 Jul 2020 16:13
Category: DropDownList
Type: Bug Report
1
DropDownList not firing change event on value change

https://dojo.telerik.com/iliKAqUr

  1. select "Oranges" from the dropdown
  2. press "Change value to 'Bananas'" button
  3. press "Sort" button
  4. select "Oranges" from the dropdown

Expected: should see two events for "Changed to Oranges" but only see one
Actual: status only shows one value change event from the first selection of "Oranges"

It seems this issue was introduced with the fix for https://github.com/telerik/kendo-ui-core/issues/4496

The introduction of _oldText in the _change method of kendo.list.js has introduced a flaw in the value change detection for DropDownList

The above dojo presents a way to short-circuit the issue since it is not easy to show the _oldText issue since the index check works as a fallback.

5 comments
ADMIN
Martin
Posted on: 27 Aug 2021 11:02

Hello, Lee,

As you can see from the item in the Feedback Portal, the bug has already been fixed at the end of 2020. The fix is available in version 2020.R3 or later.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Lee
Posted on: 20 Aug 2021 19:01
Has this been fixed and what is the workaround?
ADMIN
Martin
Posted on: 22 Jul 2020 08:36

Hello Matthew,

My apologies for the misunderstanding.

The behavior is a bug and therefore I have converted this thread to a bug report, which you can track in our Feedback Portal on this link. The issue is logged with the highest priority so a fix should be available relatively soon.

As a small token of appreciation for reporting the behavior, I am updating your Telerik Points.

Let me know if you have any further questions.

Regards,
Martin
Progress Telerik

Matthew
Posted on: 21 Jul 2020 09:47
I'm not expecting the change to "Bananas" to trigger the change event. I'm expecting step 4 of my steps to reproduce to trigger the change. Step 4 is a user-triggered change from "Bananas" to "Oranges." Opening the dropdown and selected "Oranges" a second time should trigger the change event but doesn't because of the change made in kendo.list.js to track _oldText to fix a ComboBox issue.
ADMIN
Martin
Posted on: 21 Jul 2020 08:02

Hello Matthew,

As stated in the API reference for the value method, using it will not trigger the change event. You will need to do so manually. I have modified the example to reflect the change.

Let me know if that works for you, or if you have any further questions.

Regards,
Martin
Progress Telerik