Kendo Multi Select Option couldn't select multi selected values

Thread is closed for posting
2 posts, 0 answers
  1. kavy
    kavy avatar
    2 posts
    Member since:
    Sep 2016

    Posted 13 Oct 2016 Link to this post

    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 ....

  2. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 18 Oct 2016 Link to this post

    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].

    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
Back to Top