Value & dataItems inconsistency

4 posts, 0 answers
  1. Kazimierz
    Kazimierz avatar
    3 posts
    Member since:
    Feb 2016

    Posted 10 Feb Link to this post

    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.
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 12 Feb Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Kazimierz
    Kazimierz avatar
    3 posts
    Member since:
    Feb 2016

    Posted 19 Feb in reply to Kiril Nikolov Link to this post

    It might have something to do with the datasource - I am retrieving data from server with ajax request.
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 22 Feb Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready