This question is locked. New answers and comments are not allowed.
I am new to kendo and I recently started coding in C#.net MVC. I have a JSON array in jsonObj(variable name), like for example:
'[{"key":"Name","comparison":"Equals","values":["JOHN","LILY"]}]'
Now, I want this jsonObj.values to be set into the kendo multiSelect on a button click. I can see the values in alert as JOHN,LILY .
I coded:
$("#DrugNames").data("kendoMultiSelect").value(jsonObj.values);
$("#DrugNames").data("kendoMultiSelect").value(jsonObj.values.toString().split(','));
But, it doesn't seem to work... I also tried using:
$("#DrugNames").data("kendoMultiSelect").value(["JOHN","LILY"]);
Still no success. Please help.
'[{"key":"Name","comparison":"Equals","values":["JOHN","LILY"]}]'
Now, I want this jsonObj.values to be set into the kendo multiSelect on a button click. I can see the values in alert as JOHN,LILY .
I coded:
$("#DrugNames").data("kendoMultiSelect").value(jsonObj.values);
$("#DrugNames").data("kendoMultiSelect").value(jsonObj.values.toString().split(','));
But, it doesn't seem to work... I also tried using:
$("#DrugNames").data("kendoMultiSelect").value(["JOHN","LILY"]);
Still no success. Please help.