Stop opeing lightbox during Edit

Hello Team,

i am using customized lightbox in my multiple resource view
scheduler.showLightbox = function(id) {
var ev = scheduler.getEvent(id);
– my custom code is here
};

This works fine,
my problem is i dont want to open lightbox for edit the event
if i use this
scheduler.showLightbox = function(id) {
var ev = scheduler.getEvent(id);
some condition
return false;
};
Then a new event is intialized and screen become fed.
Please suggest how can i do this

Thanks in advance

Hi,
if you want to prevent lightbox from showing, you should use onBeforeLightbox event:
docs.dhtmlx.com/scheduler/api__s … event.html