Our pure JavaScript Scheduler component


Post by jyoti »

I want to disable edit and delete functionality for a particular event. Below is my code which is obviously not working. If its possible not to show edit/delete context menu when right click on an event or any other solution,please suggest.
if(event.type == "beforeeventedit"){ if(condition) return false }

Post by mats »

Just set the eventContextMenu feature to false. Docs:

https://bryntum.com/docs/scheduler/#Sch ... ontextMenu

Post by jyoti »

Thank you for your answer. But it disables edit/delete for all the events. I just want to disable if for a particular event.

Post by mats »

Then use this event: https://www.bryntum.com/docs/scheduler/ ... BeforeShow
Fired from scheduler before the context menu is shown for an event. Allows manipulation of the items to show in the same way as in processItems. Returning false from a listener prevents the menu from being shown.

Post by jyoti »

Thanks Mats. Your are awesome!

Post Reply