reorder

Moves the specified item at a position set by the zero-based index parameter. The rest of the items are reordered accordingly.

Parameters

element jQuery|Element|String

The item that is to be reordered.

index Number

The new position of the item in the list.

Example

<select id="listBox">
    <option>Orange</option>
    <option>Apple</option>
    <option>Banana</option>
    <option>Peach</option>
</select>
<script>
$("#listBox").kendoListBox();
var listBox = $("#listBox").data("kendoListBox");
// moves first item to position with index 2
listBox.reorder(".k-list-item:first", 2);
</script>
In this article