I have a MultiSelect which is also sortable (so the selected items can be reordered):
el.kendoMultiSelect({
dataSource: settings.dataSource,
dataTextField: settings.dataTextField,
dataValueField: settings.dataValueField,
autoClose:
false
,
animation:
false
});
var
multiSelectData = el.data(
"kendoMultiSelect"
);
multiSelectData.tagList.kendoSortable({
hint:
function
(element) {
return
element.clone().addClass(
"hint"
);
},
placeholder:
function
(element) {
return
element.clone().addClass(
"placeholder"
).text(settings.dropText);
},
});
When I get the values - multiSelectData.value() - they're in order which they were added, instead of the order that they've been arranged in to.
Is there a way I can have the MultiSelect update the values when an item is reordered, without delving into the 'private' properties of the MultiSelect?
Thanks in advance,
Dave