Hide buttons in lightbox

Hi,

I want prevent users from editing and deleting exisiting events.
For this purpose I want to hide the save and delete button in the lightbox when the user whants to edit an event.
What would be the best way to solve this?
Thanks!

You can try
docs.dhtmlx.com/doku.php?id=dhtm … donly_view

I tried it, but for some reason it doesn’t has any effect.
Maybe it’s because I’m using a custom lightbox?

Yep, if you fully redefined lightbox it will not help.
In case of custom form - the logic must be a part of custom form, it can’t be controlled from the scheduler.

well a have been solved this like below:

scheduler.attachEvent(“onDblClick”, inibeEdicao);
scheduler.attachEvent(“onClick”, inibeEdicao);

function inibeEdicao(event_id, native_event_object)
{   return false;     }