Our pure JavaScript Scheduler component


Post by tomerPlanit »

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

We'er trying implement drag and drop actions out of source scheduler(for now from one scheduler to other).
After we check which drag and drop events are run we found that:
1)The 'eventDrop' event is of target scheduler.
2)The 'eventDrag' event is always of the resource scheduler.

The 'eventDrag' is problem for me because i select the row that event dragged on, so i got wrong view,
i drag on target scheduler and select resource on source scheduler.

There is a solution to this?

Attachments
1.png
1.png (85.6 KiB) Viewed 1250 times

Post by saki »

Just to make sure, did you see/analyze this example? It looks like it does exactly what you want.


Post by tomerPlanit »

Yes, I create some example for see the problem open the inspect and see the console when you drag some event to different scheduler.

Attachments
drag-between-schedulers.rar
(236.89 KiB) Downloaded 64 times

Post by mats »

Could you please describe the 'problem' you are facing in a few more words. Also if you could record and share a video with us so we can see clearly what's happening - that would also be very helpful.


Post by tomerPlanit »

Hi mats I solve this problem.
I have question how can i allow drag event out of source chrome tab?
I started to use DragHelper:

 // Drag out the scheduler.
    const drag = new DragHelper({
      mode: 'translateXY',

   // Allow drag on all body.
  dropTargetSelector: 'body',

  // Allow drag of scheduler event.
  targetSelector: '.b-sch-event',
 });

Post by Maxim Gorkovsky »

Hello.
Do you mean dragdrop between browser tabs? We do not support it out of the box. But it should be possible using browser Drag and Drop API: https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API


Post by tomerPlanit »

Yes I mean drag drop between browser tabs.
Thanks for the quick reply.


Post by tomerPlanit »

Hi, I found that you limit the drag zone of the dragged event by default by body(the dragged element can't leave the app body).
You can see it in all the examples.
How can i remove this limit(If it possible)?

Attachments
drag-helper.png
drag-helper.png (80.8 KiB) Viewed 1184 times

Post by fabio.mazza »

Hi tomerPlanit,

May I ask for where you trying to drop the element? Do you have a video showing your try on examples page?

Thank you.

Best regards,
Fabio


Post Reply