Our pure JavaScript Scheduler component


Post by v-paulrausch »

Hi Team,
I am trying to show a custom context menu on click of SchedulerContext but It's coming along with the browser right click menu, But I am using the same logic for eventContext menu there its working fine. Is there way I can disable it or am I doing something wrong here. Below is the code for reference and a video of the issue.

scheduleMenuFeature: {
        showContextMenu(event: any) {
          handleEventContextMenu(event.event, event.eventRecord);
        },
      },
      onEventContextMenu(event: any) {
        if (event.eventRecord.readOnly) {
          // Do not trigger the context menu for read-only events
          event.source.features.eventMenu.disabled = true;
        } else {
          event.source.features.eventMenu.disabled = false;
          handleEventContextMenu(event.event, event.eventRecord);
        }
      },
msedge_LQq8bUKHaQ.mp4
(1.02 MiB) Downloaded 10 times

Regards,
Paul


Post by tasnim »

Hi,

I'm not able to reproduce the issue here, Are you able to reproduce it with the latest version? Would it be possible to upload a runnable test app where we can reproduce the issue and debug it?


Post Reply