How to call the ligthbox in a button outside the scheduler?

Does anyone know how to call the scheduler ligthbox in a button outside the scheduler?
Is there a way to know the mode of transaction in scheduler ligthbox if it is editing or adding new event using javascript? using mvc controller?

how to call the scheduler ligthbox in a button outside the scheduler?

<script>
    scheduler.showLightbox(id);
</script>

Is there a way to know the mode of transaction in scheduler ligthbox
Do you need that info on client side or on server side?

On server side

public ContentResult Save(int? id, FormCollection actionValues){ var action = new DataAction(actionValues); //action.Type - type of operation

You can check MVC samples, which are included in package