Shariful Alam
Shariful Alam

Reputation: 13

Drag and drop from Kendo Grid to kendo Treeview in mvc

I have a kendo grid and kendo treeview; the kendo grid data is bound to a database and the treeview is currently empty. How can I drag a single column single value from the grid to treeview? Could someone provide some suggestions or examples on how can I do this?

Upvotes: 1

Views: 1816

Answers (1)

himawan_r
himawan_r

Reputation: 1780

You can use kendo draggable, here is the overview :

LINK

To summary them up

  1. make your grid as kendo draggable,
  2. make your treeview droppable target,
  3. on the drop function of the droppable target, do the logic to remove item from grid, then add it to treeview

HERE some raw example

kendo dojo (grid to treeview)

kendo dojo (listview to treeview)

Upvotes: 2

Related Questions