Page 1 of 1

[ANGULAR] Drop event out the scheduler by use DragHelper.

Posted: Tue Nov 24, 2020 1:07 pm
by tomerPlanit

Hey there.
We're working with Bryntum Scheduler on an Angular 9 project.

I am trying to drop events from scheduler to other elements (that are not bryntum schedulers).
In order to achieve this behavior, we've used Bryntum DragHelper.

We've found a problem is when the drop action is async (we're using async, we haven't tested the sync option to see if the problem occurs) and I have scroll period that is hidden by the Resource Column- the finalize function does not work.

I added a demo for you that I created based on angular 8 example.

For check it you need scroll right the scheduler, and drop event to red zone.


Re: [ANGULAR] Drop event out the scheduler by use DragHelper.

Posted: Tue Nov 24, 2020 8:05 pm
by pmiklashevich

Hello!

Thank you for the testcase! Dragging an event outside the scheduler (except the case when you drag to another scheduler) is not supported out of the box. I've opened a feature request to show how to do it. https://github.com/bryntum/support/issues/1954 I'm afraid it cannot be done in scope of the forum support. Please consider our professional services https://www.bryntum.com/services/

In your test case 2 features are processing the drag simultaneously. If you disable the EventDrag feature, you'll see only your feature affects the drag. But then you will have to process all the drag and drop cases on your own. And the downside is that built-in event drag will not work. Therefore I would recommend you to extend the EventDrag feature to implement your functionality. Please also pay attention to the https://www.bryntum.com/docs/scheduler/#Scheduler/feature/EventDrag#config-dragHelperConfig

There is another problem you highlighted. When the drop happens outside the scheduler, it is considered as a valid drop by the EventDrag feature and it moves the event to a new place behind the resource cells. I've registered the bug here: https://github.com/bryntum/support/issues/1953 Please subscribe to get notified when it's fixed.

Best regards,
Pavel


Re: [ANGULAR] Drop event out the scheduler by use DragHelper.

Posted: Tue Jul 27, 2021 10:41 am
by oleh

Hello!

We also need to drag events out of the scheduler to another angular component.
Is it possible to add this feature to the scheduler?
How long could it take to implement?
Who can we contact about this feature request?


Re: [ANGULAR] Drop event out the scheduler by use DragHelper.

Posted: Tue Jul 27, 2021 11:47 am
by alex.l

Hi oleh,

We already have a ticket for that: https://github.com/bryntum/support/issues/1954
Please subscribe on ticket updates and you will be notified when we put in on the roadmap to the nearest releases.
You can also sponsor this feature to push it, contact our Sales here: https://www.bryntum.com/services/

All the best,
Alex


Re: [ANGULAR] Drop event out the scheduler by use DragHelper.

Posted: Wed Jul 28, 2021 3:56 pm
by oleh

Thank you, Alex, we will think about it