Restrict Edit popup in schedler for some events

Hello Team,
first of all Thanks to all the support members for your quick responses.greatly appreciated

Is it possible to restrict edit lightbox for few events,
like i have to give permission to view/edit my events to other user’s so i want to restrict the edit functionality for some events and no restriction for others.
how can i do this?

Thanks in advance!

You can use onBeforeLightbox event

[code]scheduler.attachEvent(“onBeforeLightbox”, function(id){
var ev = scheduler.getEvent(id);
if (ev.some_property) return false; //block lightbox

return true;
})[/code]