Our pure JavaScript Scheduler component


Post by portlink »

Hey. I am trying to get dependencies shown on the scheduler. Only for the assignments with the same event.

I attached a screenshot of what I am trying to achieve. I do not need that line that is crossed out, as I have not yet attached it to another event.

Is this possible?

Attachments
dependencies.PNG
dependencies.PNG (29.4 KiB) Viewed 234 times

Post by mats »

So you want to show a line between assignments linked to the same event? That's not supported I'm afraid, our dependencies are between two events. In theory, anything can be done of course but it would require some custom work. If you're interested in having us develop this, please reach out to sales [at] bryntum and we can discuss details.


Post by portlink »

Thank you for the quick reply. I was also wondering if the overlapping event sorter worked with assignments as well? Seems like right now if I have an event and make it the top of the sort, both assignments will be at the top. There are some scenarios where I want one assignment to be the top and the other one to be at the bottom.


Post by alex.l »

Hi, what did you mean when you said "I want one assignment to be the top and the other one to be at the bottom"?
What element from displayed on a timeline you called assignment?

All the best,
Alex


Post by portlink »

Following the picture I attached.

I would like the assignments for Madison to be ordered multi3 first then Multi 2,
but I would still like for Macy's assignments to be ordered Multi 2 and multi3.

Likewise for the assignments to George to be ordered Single assigned then Multi assigned, while keeping Celia's assignment the same.

Multi 2 and multi3 are multi assignments.

Attachments
assignment order.PNG
assignment order.PNG (94.11 KiB) Viewed 165 times

Post by alex.l »

Well, this should be some algorithm that will check all the parameters you want, it might be placed here https://bryntum.com/products/scheduler/docs/api/Scheduler/view/mixin/SchedulerEventRendering#config-overlappingEventSorter
We have a demo for this here https://bryntum.com/products/scheduler/examples/layouts/

All the best,
Alex


Post by portlink »

I was able to do it by getting the list of assignments from both eventModels and seeing which assignments from the two arrays have the same resources.

Is it possible to have the overlapping function have assignmentModel parameters as well?
Not needed anymore as you can compare both list of assignments, but just a suggestion.

Thanks for the help.


Post by alex.l »

Assignments are available in eventModel https://bryntum.com/products/scheduler/docs/api/Scheduler/model/EventModel#property-assignments , not sure it's required to be passed separately.

Glad to hear you reached your goal!

All the best,
Alex


Post Reply