Premium support for our pure JavaScript UI components


Post by peterjc »

Hi, I want to set a property differently during the scheduleContextmenu event depending whether the user has right clicked on either an event, or elsewhere. I have the following.

  this.scheduler.addListener({
        scheduleContextmenu: ev => {
          this.selectedEvent = undefined;
          this.clickedCellStartDate = ev.tickStartDate;

      return true;
    }
  });

Is there any way to k now if this event originated from an event as opposed to somewhere else on the scheduler (I note it is fired for both places)

Thanks in advance


Post by mats »

scheduleContextMenu event is only triggered when clicking empty space in the schedule. Are you seeing it fire also when you right-click event bars?


Post by peterjc »

Yes I also get it when I right click on an event.
Sorry forgot to mention the version...

"@bryntum/scheduler": "6.0.1",
"@bryntum/scheduler-angular": "6.0.1",

If it did not fire when right clicking on the event, this would also fix my issue


Post by peterjc »

Actually, I retract that. I just realised, it only happens when I have chrome devtools open.

Sorry, it is not an issue as works fine - was only devtools open that made it happen (which doesn't matter)


Post by mats »

Still shouldn't matter, I just tried myself with dev tools open and could not repro. Can you reproduce this on our online examples (or whip up a CodePen)?


Post by peterjc »

Hi mats, I will try to get to doing this, just the next couple of weeks is unfortunately very busy due to an upcoming release of other products.

In my case, the scheduler is inside an Ionic/Angular application. I had devtools open (running in debug) and may have had device emulation enabled. But when running in production, the only time we use the context menu is the Windows build, where I have the Ionic app embedded in a custom .net app running webview2, so devtools will never be opened from in there, and it all works fine in there.

But I will try and find the combination that made this occur.


Post Reply