Unplanned
Last Updated: 22 Mar 2022 15:33 by ADMIN
Indra
Created on: 17 Mar 2022 08:00
Category: DropDownList
Type: Bug Report
7
Cascading virtual DropDownList does not reset scrollbar

I have a cascading DropDownList scenario with virtual scrolling. When the first DropDownList changes value, the second one should reset its scrollbar to the top, because it now contains new data. This doesn't happen.

Here is a REPL test page.

===

ADMIN EDIT

===

As a workaround for the time being, you may track when the value is changed in the parent DropDownList to dispose and re-initialize the child DropDownList.

Here is an example: https://blazorrepl.telerik.com/mdafHabk585ZtzyV54.

2 comments
ADMIN
Dimo
Posted on: 22 Mar 2022 15:33

Hello Indra,

The DropDownList value does not reset automatically in virtual scrolling scenarios. This behavior is by design. The idea is that the component data changes all the time during virtual scrolling and we don't want to reset the value in this case.

You can clear the value manually.

Regards,
Dimo
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/.

Indra
Posted on: 17 Mar 2022 19:12
And shouldn't the Bind-Value be reset too? For non virtualMode, I do not have to reset the bind-value for the second dropdown when I change the datasource. In non virtual mode, when I change the first dropdown, the second dropdown value is also reset to default.