For others, I found this works best
<
ul
class
=
"preferences list-group"
kendo-sortable
k-placeholder
=
"sortPlaceholder"
k-hint
=
"sortHint"
k-change
=
"onSortChanged"
>
//Kendo Drag\Drop
$scope.sortingOptions = {
axis:
"y"
}
$scope.sortPlaceholder =
function
(element) {
return
element.clone().addClass(
"placeholder"
).text(
"Drop Here..."
);
};
$scope.sortHint =
function
(element) {
return
element.clone().css(
"width"
, element.width()).addClass(
"moving hint"
);
};
$scope.onSortChanged =
function
(e) {
arraymove($scope.selectedBlock.locations, e.oldIndex, e.newIndex);
$scope.dirty =
true
;
$scope.$apply();
}
function
arraymove(arr, fromIndex, toIndex) {
var
element = arr[fromIndex];
arr.splice(fromIndex, 1);
arr.splice(toIndex, 0, element);
}