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

Scheduler Event Context Menu during multiselect

Asked by Anonymous
6 years ago.

Hi,

I am trying to put a copy feature on the event context menu that will copy multiple events selected at once.

To do this, I need to access the data of all selected events, however, it appears that only the single right clicked event data is available within the Menu context:

this.scheduler.control.contextMenu = new DayPilot.Menu(
{
items: [
{text:"Copy Activity", onClick: function(e) { let eventData = e.source.data } }
]
}
)

Is there any way of accessing data of all selected events in the Menu context?

I'm working with Angular 5 Scheduler.

Thanks

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

You can get a list of all selected events using DayPilot.Scheduler.multiselect.events() method:
https://api.daypilot.org/daypilot-scheduler-multiselect-events/

let events = this.scheduler.control.multiselect.events();
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.