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

Kendo Multi Select Option couldn't select multi selected values

1 Answer 580 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
kavy
Top achievements
Rank 1
kavy asked on 14 Oct 2016, 01:40 AM

Iam new with Kendo UI . I  use KendoMultiSelect for Multiple option selected . It seems work perfect for adding new data but when  go through with editing data KendoMultiSelect option not selected multi values .

The code is something like below........

$("#showData").getKendoMultiSelect().value([4,6]) - This work perfectly But

var getVal = '4,6' ;

$("#showData").getKendoMultiSelect().value([getVal]) - This code not working

What is the different between and why its not working ?? 

Sorry for amature question but iam having this problem and couldn't solve and skip .

Thanks in advance ....

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 18 Oct 2016, 10:08 AM
Hello Kavy,

Your question is a general Kendo UI issue and you should post in in the Kendo UI forums or Stack Overflow where Kendo UI community discussions take place. The Telerik Platform forums are for discussions about problems or questions that arise during mobile app development in Telerik Platform.

Just a quick note, because your problem may indeed be a simple one. It seems like you are mixing numbers with strings. In your first code snippet you have an array of numbers. In getVal they are a string. The MultiSelect won't be able to find the items if their values are numbers and you are passing a string parameter. Try with var getVal= [4, 6].

Regards,
Tsvetina
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
kavy
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or