Page 1 of 1

How to disable cellMenu for right click

Posted: Tue Aug 20, 2024 3:48 pm
by renangi100

Hi
I am adding below Scheduler Map - Want to disable CellMenu right click, cell need to be clickable, i dont want right click to show popup menu.

In Features added cellMenu as false, its not working, and also I don,t want to user delete the event (for example select event press delete button)

https://bryntum.com/products/schedulerpro/examples/maps/

Thanks
Madhu


Re: How to disable cellMenu for right click

Posted: Tue Aug 20, 2024 4:11 pm
by tasnim

Hi,

I tried setting the cellMenu to false and it worked. How did you set that?
Please try the code below.

        features : {
            cellMenu : false
        },

Hope this helps.

Best regards,
Tasnim


Re: How to disable cellMenu for right click

Posted: Tue Aug 20, 2024 4:39 pm
by renangi100
cellMenu kept as false, not working
 const schedule = new Scheduler({
        ref: 'schedule',
        insertFirst: 'main',
        startDate: obj3.startDate,
        endDate: obj3.endDate,
        flex: 5,
        rowHeight: 80,
        barMargin: 4,
        eventColor: null,
        eventStyle: null,
       features : {
        filterBar  : true,
        cellMenu   :false      
},

Re: How to disable cellMenu for right click

Posted: Tue Aug 20, 2024 6:13 pm
by alex.l

Hi,

Sorry for confusing, the correct feature to manage it is https://bryntum.com/products/schedulerpro/docs/api/Scheduler/feature/ScheduleMenu

Code

        features : {
            scheduleMenu : false
            // ...
        },

Re: How to disable cellMenu for right click

Posted: Wed Aug 21, 2024 12:03 pm
by renangi100

alex
Not working, I copied and pasted, its not working
https://bryntum.com/products/schedulerpro/examples/maps/


Re: How to disable cellMenu for right click

Posted: Wed Aug 21, 2024 12:17 pm
by alex.l

Checked again and it worked.
Please see video attached:
https://drive.google.com/file/d/1gGYXV8ToCU8ulTvpEzJt9F0V8nLY_3QR/view?usp=sharing


Re: How to disable cellMenu for right click

Posted: Wed Aug 21, 2024 12:50 pm
by renangi100

alex

I want to disable right click on event, Now it is showing Menu with Edit, cut, copy, delete..

Thanks
Madhu


Re: How to disable cellMenu for right click

Posted: Wed Aug 21, 2024 12:52 pm
by alex.l

Please see docs https://bryntum.com/products/schedulerpro/docs/api/Scheduler/feature/EventMenu

Same as for scheduleMenu, just disable that feature.