I have a multi-select dropdown.I am binding a object to that .Just to get multiple values out of the selection.I am able to get the values and process it.
Here is the sample of - how i am loading the multi-select control in my page
http://jsfiddle.net/Hsakarp/d5j0zogz/
var viewModel = {
optionValues: [{name: "name1", Id: 1, fullname: "Development"},{name: "name2", Id: 2, fullname: "Development"},{name: "name3", Id: 3, fullname: "Development"}],
multipleSelectedOptionValues: ko.observable(),
};
But when i load the page again for edit, i want to set the values as selected values.I have tried with Jquery - JQuery multiselect - Set a value as selected in the multiselect dropdown
Can someone show me how to do it with Knockout itself?