Hello,
Below is my code for tree view.
@(Html.EJ().TreeView("tree").AllowDragAndDrop(true).AllowMultiSelection(true)
.TreeViewFields(field =>
field.Datasource((List<TM>)ViewBag.Tasks)
.Id("ID")
.ParentId("ParentID")
.Text("TaskName")
).Template("#treeTemplate").ClientSideEvents(e=>e.NodeDragStop("NodeDropped"))
)
<script>
function NodeDropped(args) {
debugger
console.log(args.draggedElementData)
console.log(args.targetElementData)
}
</script>
The problem is,in case of multiple elements get dragged i'm getting only the first dragged element. If i drag 3 elements together,how to access all of them while drag and drop? I don't mind if the different event should be used.