You checked the KendoUI Sortable widget . In fact, it is quite easy to use.
If these are your HTML list items:
<ul id="sortable"> <li>Option 1</li> <li>Option 2</li> <li>Option 3</li> <li>Option 4</li> <li>Option 5</li> <li>Option 6</li> </ul>
You just need to do:
$("#sortable").kendoSortable({ });
Check here: http://jsfiddle.net/OnaBai/gN3jV/
With this initialization, by default your draggable element looks like the original one (the same CSS style), but you can change it by specifying the hint handler:
$("#sortable").kendoSortable({ hint:function(element) { return element.clone().addClass("ob-hint"); } });
Where I add the ob-hint CSS class to the element being dragged.
See previous example: http://jsfiddle.net/OnaBai/gN3jV/1/
And you can also create a placeholder (where you want to delete) by specifying a handler that adds a class to the element or even text.
$("#sortable").kendoSortable({ hint:function(element) { return element.clone().addClass("ob-hint"); }, placeholder:function(element) { return element.clone().addClass("ob-placeholder").text("drop it here"); }, });
Modified example here: http://jsfiddle.net/OnaBai/gN3jV/2/
Onabai
source share