Our pure JavaScript Scheduler component


Post by maxd. »

Hi team,

I use scheduler pro with dependencies in vertical mode and I search to disable all actions on my summaryFeature
I read the doc and made several try without success.

Context menu :
I already use custom renderer, https://bryntum.com/docs/scheduler-pro/api/Scheduler/feature/Summary
But doesn't find a way to disable context menu (right click)
Image

Double click :
When i double click on a summary, the colum disappears, come back after another click in the scheduler. How to disable it ?
Image

Thanks for help,
Max.


Post by marcio »

Hey Max,

For preventing the context menu to be opened, you need to return false to https://bryntum.com/products/schedulerpro/docs/api/Scheduler/feature/EventMenu#event-eventMenuBeforeShow

listeners : {
        eventMenuBeforeShow : () => {
            return false;
        }
    }

For the second part of your post, regarding the Double click, we'll need to know how you set up the custom render of the summary, to assist you better about how to avoid that behavior. If you could provide a sample project with your configuration, would be really nice for us to help you.

Best regards,
Márcio


Post by maxd. »

Hey Marcio,

eventMenuBeforeShow disable context menu for event too, not good.

It does not matter I prepared a sample project enclosed, it's based on schedulerpro/dependencies demo
After a few tries thoses 2 problems (context + double click) appears only in vertical mode

See demo enclosed, added commentary to help you to spot the issue.

const schedulerConfig = {
     // BUG => https://forum.bryntum.com/viewtopic.php?t=23573
     // "horizontal" => OK :no context menu, no double click event
     // "vertical" => 2 bugs : context menu appears on right click & summary disappear on double click
     mode: "vertical",
}
Attachments
sample-project.zip
(443.89 KiB) Downloaded 19 times

Post by tasnim »

Hi,

You could use https://bryntum.com/products/scheduler/docs/api/Grid/feature/CellMenu#event-cellMenuBeforeShow listener to disable the cellMenu

You just need to do this inside of your schedulerConfig

listeners : {
	cellMenuBeforeShow() {
		return false;
	}
}

This should be working for you.

Good Luck :),
Tasnim


Post by tasnim »

That sounds like a bug too. Here is the ticket https://github.com/bryntum/support/issues/5978


Post by maxd. »

Hi Tasmin,

Perfect video, you got it :)

Also don't forget the second part, double click also crash the scheduler in vertical mode.
I don't know if it needs another github ticket, maybe it's the same bug origin.

Thanks you :)


Post by marcio »

Hey Max,

Created another ticket for the double click behavior - https://github.com/bryntum/support/issues/5979

Best regards,
Márcio


Post by maxd. »

Hi team,

I confirm the fixes are OK with the new 5.2.9 release.

Thanks.


Post Reply