Bind event to a custom button

is there a way to bind event like onEventSave, onBeforeEventDelete to a button that i added to my custom lightbox?

You can trigger any event from custom code

scheduler.callEvent(“onEventSave”,[ parameters ]);

But it will trigger event only, not the saving|deleting routine.
check dhtmlxScheduler\sources\lightbox.js, _init_lightbox_events method, if you need more info, about how default buttons work.