Hi support,
I've seen your example for the drag from grid to the scheduler but is it possible to do the opposite way, from scheduler to the grid? Please share an example
Thank you
Hi mats,
Thank you for your quick response, it's great to hear that
Our use case is the same as in your example (https://www.bryntum.com/examples/scheduler/dragfromgrid/) but instead of drag from grid we would like to drag task back from scheduler to the grid
First you have to set this to false to allow events to be dragged outside the scheduler: https://bryntum.com/docs/scheduler/#Scheduler/feature/EventDrag#config-constrainDragToTimeline
Then need to listen to the drop event and process the action to remove the event record from Scheduler's event store, something like this. Should be doable!
If you need our help, we offer professional services too: https://www.bryntum.com/services/
You need to assign a css class to the grid and then set this CSS as dropTargetSelector
.
If you need a more granular control, then you could implement https://bryntum.com/docs/gantt/#Gantt/feature/TaskDrag#config-validatorFn
I've put together an example that shows how you can do it. Take it as a model and add your code to fulfill your requirements.
It is a modified drag-from-grid
example but implements the opposite direction of D&D.