I'm adding several items to an array using concat in an event-handler as follows:
var selectedValues = [];
$.each($('#selected-levels').data("kendoListBox").dataSource.data(), function(i, item) {
selectedValues.concat([ item.id ])
});
return {
"selected" : selectedValues
};
this always returns {level-selected: Array(0)}
even though I have checked that there are some items in the dataSource (by stepping through with debugger)
why don't the items appear in the array?