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

Multiselect is erronously converting integers to strings

1 Answer 59 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Zohar
Top achievements
Rank 1
Zohar asked on 29 Sep 2014, 06:19 PM
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

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 01 Oct 2014, 11:34 AM
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!
 
Tags
MultiSelect
Asked by
Zohar
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or