telerik / kendo-ui-core

An HTML5, jQuery-based widget library for building modern web apps.
http://www.telerik.com/kendo-ui
Other
2.54k stars 1.91k forks source link

Cannot set multiselect value with item that is not present in the first page #5050

Closed brnowakowski closed 5 years ago

brnowakowski commented 5 years ago

Bug report

Setting multiselect value with item that is not on first page of dataSource does not work

Reproduction of the problem

https://dojo.telerik.com/oPENOwuR To reproduce problem just run script. Multiselect control does have initial value and autoBind set to false.

After initalizing multiselect, item I want to set as value is added to dataSource, bacause it is not present in current dataset.

After value is set, it is present in multiselect for a moment but dataSource.transport.read is executed and value disappears after read is done.

Current behavior

Setting value causes to execute transport.read what results in clearing control value.

Expected/desired behavior

Value should not disappear after it is set.

Environment

zdravkov commented 5 years ago

The described paging scenario is supported by the widget only when the virtualization is anabled - Enabling the paging and setting the pageSize of the MultiSelect is efficient only when these features are used with virtualization.- as it is described in this documentation article - https://docs.telerik.com/kendo-ui/controls/editors/multiselect/virtualization.