Add Event

Hello,

I’m trying your dhtmlScheduler MVC product.
And I’d like to attach my own code to your events. Onclick/onBeforeLightbox / on event loaded…
Indeed, I need to add custom code to manage user’s role.
I don’t find any example for MVC application .

Do you have any sample for MVC ?

Thank in advance

Mentioned events are client side handlers.
You can’t attach .net code to them, but you can attach js code.

I understand, in this case, is it possible to have different lightbox ?
Can I load different lightbox following the user role ?
I’m looking for the best practice.

Thanks

In case of custom .net form you can show different forms for different events ( as for each event form may be rendered on server side )

In case of built-in lightbox, it possible to reconfigure lightbox for different events ( so they will have different sets of inputs ). It is not very simple, but possible