search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Group resources

Asked by Keith
4 years ago.

Hi

I have a requirement to group resources within a tree so that each level of the tree can contain multiple resources. For example,

+ World - Supplier 1

  • Supplier 2

+ Africa - Supplier 1

  • Supplier 2

The data would look something like

ParentID, Name, Supplier, Event
null, World, Supplier1, Event WorldS1
null, World, Supplier2, Event WorldS2
World, Africa, Supplier1, Event AfrS1
World, Africa, Supplier2, Event AfrS2

Is this possible?
Thanks

Answer posted by Dan Letecky [DayPilot]
4 years ago.

Unfortunately, this kind of arrangement is not supported at the moment. The parent resource will always be displayed as a separate row.

Comment posted by Keith
4 years ago.

Hi Dan thanks for the reply. Is it possible to control the layout of resource events as in to make events render on separate lines? I've played about with the sorting and exact positioning which works great for overlaps but when no overlaps, events are displayed on the same row.
Thanks
Keith

Comment posted by Dan Letecky [DayPilot]
4 years ago.

At this moment, the events are always displayed as high as possible. You can change the order but you can't force a bottom position.

If you want to keep several related events on the same line you there are two options;

  • use a special row for them
  • merge them into one event and display the segments using active areas

See also:

https://doc.daypilot.org/scheduler/event-phases/
https://code.daypilot.org/82331/javascript-scheduler-warm-up-and-cool-down-time

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.