I have a selectable grid and I want to be able to drag the selected row into a drop target.
I tried attaching kendoDraggable on all the grid rows to make all the rows draggle something like this:
$("#grid tr").kendoDraggable({
hint: function() {
var g = $("#grid").data("kendoGrid")
return g.select().clone()
},
dragstart: function() { console.log("drag start");},
dragend: function() {console.log("drag end");}
});
Unfortunately, this doesn't work. What I am doing wrong?
I tried attaching kendoDraggable on all the grid rows to make all the rows draggle something like this:
$("#grid tr").kendoDraggable({
hint: function() {
var g = $("#grid").data("kendoGrid")
return g.select().clone()
},
dragstart: function() { console.log("drag start");},
dragend: function() {console.log("drag end");}
});
Unfortunately, this doesn't work. What I am doing wrong?