Hi,
Is it possible to drag and drop an external object into the scheduler using Angular7/8?
I have a list of predefined "appointments" (meetings, vacations, etc) and would like to drag and drop them into the scheduler
Support Forum
Hello.
That sounds possible. We have a demo for dragdrop between grid and scheduler, showing basic pricinple of such feature:
- There is an entity which is aware of the possible drag source and drag target
- Entity knows what can be dragged and what to do on drop
https://www.bryntum.com/examples/scheduler/dragfromgrid/
That sounds possible. We have a demo for dragdrop between grid and scheduler, showing basic pricinple of such feature:
- There is an entity which is aware of the possible drag source and drag target
- Entity knows what can be dragged and what to do on drop
https://www.bryntum.com/examples/scheduler/dragfromgrid/
It is possible, yes. 'Drag' class in the demo specifically removes the task from the origin grid, you can stop that by removing the corresponding line in 'onTaskDrop' method:
But also in that case you would need to copy the object. We add record instance, you would need to do smth like:
Or use copy method on the model
me.grid.store.remove(task);
schedule.eventStore.add(Object.assign({}, task.data))