How can I drag the nested event to another event? For, eg, I'd like to drag "Conclusion" to in between "Agenda" and "Outro" without dragging the whole event?
Re: [ANGULAR] Drag and drop for child even
Posted: Wed Oct 13, 2021 10:05 am
by alex.l
We have an example of draggable events for SchedulerPro. It allows to move nested events only inside a parent event, but should be very helpful for you to understand a concept. https://bryntum.com/examples/scheduler-pro/nested-events/
I suggest you to have a look at DragHelper config as a start.
Re: [ANGULAR] Drag and drop for child even
Posted: Wed Oct 13, 2021 11:03 pm
by kokhooi
Hi
Thanks for the reference. But it only allow to drag in X mode. How can I have it drag all over the parent event, that the parent height is dynamically adjusted?
Re: [ANGULAR] Drag and drop for child even
Posted: Wed Oct 13, 2021 11:51 pm
by kokhooi
One more thing, is this applicable only to SchedulerPro? Can I extend it from Scheduler?
Re: [ANGULAR] Drag and drop for child even
Posted: Thu Oct 14, 2021 5:15 am
by kokhooi
hi, i got it to work by using the sample with SchedulerPro. What is missing now is the "dynamic" event row height and able to drag in XY mode(possible to other parent event as well). Any reference on these?
Set mode: translateXY in Drag
Commented intersectSpans in isNestedEventValid
Set rowHeight : 500 in SchedulerWithSubtasks
Set height: "50px" in eventBodyTemplate
I can drag and drop the event within the same container. But how do I
1) Prevent the nested event from "sticking" to each other? How can I reorder it as if it's a normal multiple events, https://bryntum.com/examples/examples-scheduler/basic/? Sample in Capture.png attachment
2) How to increase or decrease the container height depending on number of stacking nested events, instead of preset it to a large height?
Really appreciate
Re: [ANGULAR] Drag and drop for child even
Posted: Fri Oct 15, 2021 8:54 am
by mats
As Alex said, this is currently not supported and not trivial to implement. Best idea (if you have budget) would likely be to hire us to implement this feature based on your requirements. If interested, please reach out to us at sales@bryntum.com
Re: [ANGULAR] Drag and drop for child even
Posted: Fri Oct 15, 2021 9:07 am
by kokhooi
Hi,
Sorry if I got it wrong, what Alex filed is to DnD from one nested events to another parent nested event. But to do it within same container in the nested event is not possible as well at the moment? Just looking how to re-order and adjust the height of the same container
Re: [ANGULAR] Drag and drop for child even
Posted: Fri Oct 15, 2021 9:45 am
by saki
If by "container" you mean the row, then you can set it in the corresponding resource record. To see it in action go to https://bryntum.com/examples/scheduler/basic/ and then type in the console: