I have an editor configured for a column which can reflect multiple values - the multiselect control binds to the source datasource just fine when a grid row is edited or a new record is being created but for the pure edit portion I need to preselect the current values from the grid row datasource - the values are there in the row object because I can see them when I do a console.log of the model field via e.model.get("UserRoleSectors") (example of value is ["2","25"] ) - however in the grid edit event handler if I try to set the value for the multi-select to ensure it reflects what values are already bound to the record via the statement e.container.find('[name="UserRoleSectors"]').data("kendoMultiSelect").value(e.model.get("UserRoleSectors")); - nothing is selected even though the values are available in the multiselect. Am I doing something wrong?
editor: function (container, options) {
// create an input element
var input = $('<
select
multiple
=
"multiple"
/>');
// set its name to the field to which the column is bound
input.attr("name", options.field);
// append it to the container
input.appendTo(container);
// initialize a Kendo UI MultiSelect
input.kendoMultiSelect({
autoBind: true,
valuePrimitive: true,
dataTextField: "SectorAcronym",
dataValueField: "SectorNo",
dataSource: $scope.sectorsDataSource
});