Edit this page

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-item:first", 2);
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy