5 Answers, 1 is accepted
0
Hello Kevin,
I am not really sure that I understand your question. Could you please elaborate a bit more?\
Thanks in advance.
Regards,
Kiril Nikolov
Telerik
I am not really sure that I understand your question. Could you please elaborate a bit more?\
Thanks in advance.
Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Kevin
Top achievements
Rank 1
answered on 03 Jun 2014, 11:09 AM
I want initialize a multiselect widget using method value to show the
selected items. This selected items are not selected from the list
linked but by another widget.
This widget may return a new json data. This data will provide the
multiselect value.
It's an example of my code :
var json = // I would like to store the json data which it returns
//selection automatique des dates
var listeDateAfficher = $.map(json, function (dataItem) {
return dataItem.value;
});
testMultiselectWithData.value(listeDateAfficher);
I hope this example you will permit to have a better understanding of my problem.
Best regards,
Kevin Quinton
selected items. This selected items are not selected from the list
linked but by another widget.
This widget may return a new json data. This data will provide the
multiselect value.
It's an example of my code :
var json = // I would like to store the json data which it returns
//selection automatique des dates
var listeDateAfficher = $.map(json, function (dataItem) {
return dataItem.value;
});
testMultiselectWithData.value(listeDateAfficher);
I hope this example you will permit to have a better understanding of my problem.
Best regards,
Kevin Quinton
0
Hi Kevin,
You can use the value() method of the MultiSelect widget in order to set its value. It accepts array of string as values and it is explained here:
http://docs.telerik.com/kendo-ui/api/web/multiselect#methods-value
Regards,
Kiril Nikolov
Telerik
You can use the value() method of the MultiSelect widget in order to set its value. It accepts array of string as values and it is explained here:
http://docs.telerik.com/kendo-ui/api/web/multiselect#methods-value
Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Kevin
Top achievements
Rank 1
answered on 05 Jun 2014, 12:37 PM
First of all thank you for your answer.
But sorry I have another question, which have not relation with Kendo. Is it possible to store in a variable the return json ?
Best regards,
Kevin Quinton
But sorry I have another question, which have not relation with Kendo. Is it possible to store in a variable the return json ?
Best regards,
Kevin Quinton
0
Hi Kevin,
JSON objects can be stored in a local variable and should not be an issue in your project.
Regards,
Kiril Nikolov
Telerik
JSON objects can be stored in a local variable and should not be an issue in your project.
Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!