Multiselect is erronously converting integers to strings

2 posts, 0 answers
  1. Zohar
    Zohar avatar
    13 posts
    Member since:
    Sep 2014

    Posted 29 Sep 2014 Link to this post

    See: http://plnkr.co/edit/gPYpA6CppqEaLR8MliQ2?p=preview

    The id of the attendees are integers but when you look at the console output you see that the integer has actually been converted to a string. 

    Is this intentional or an error? Is there a way around this? 

    Thanks,
    Zohar
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 01 Oct 2014 Link to this post

    Hello Zohar,

    When ng-model directive sets the value of the SELECT element to the model, which is a string value. In order to overcome this behavior you will need to use k-ng-model directive. Here is a demo that demonstrates the suggested approach. Let me know if I am missing something.

    Regards,
    Georgi Krustev
    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
Back to Top