This is a migrated thread and some comments may be shown as answers.

Value & dataItems inconsistency

3 Answers 108 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Kazimierz
Top achievements
Rank 1
Kazimierz asked on 10 Feb 2016, 01:12 PM

I am using Kendo UI 2016 Q1. In this version there I noticed a strange behavior when I want to clear items selected on MultiSelect. I clear them like this:

var multi = $("#test").data("kendoMultiSelect");
multi.value([]);
console.log(multi.value(), multi.dataItems());

In result on console I can see that although value is empty data items are not. This inconsistency causes problem in application. Is this a bug in kendo or expected behavior? Is there a way to ensure that dataItems get cleared immediately when I set value to empty array? Thanks in advance for all suggestions.

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 12 Feb 2016, 08:19 AM

Hello Kazimierz,

 

I was not able to reproduce the same issue in the example below, can you please take a look and let me know what I missed?

http://dojo.telerik.com/eVETo

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Kazimierz
Top achievements
Rank 1
answered on 19 Feb 2016, 11:20 AM
It might have something to do with the datasource - I am retrieving data from server with ajax request.
0
Kiril Nikolov
Telerik team
answered on 22 Feb 2016, 08:53 AM
Hello Kazimierz,

Would it be possible to send us a sample where we can reproduce the issue, so we can further assist you?

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MultiSelect
Asked by
Kazimierz
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Kazimierz
Top achievements
Rank 1
Share this question
or