Limit events per users

Hi all.

It´s possible to limit the number of events that a user can create?

If not possible with the scheduler options … It´s possible to block the event creation and just left the posibility of delete or edit events.

For example, I want to limit 3 events per user. I detect the number of events that the user has. If has less than 3, the user can create another event, else, the user just can edit or delete own events.

Thanks in advance.

Regards

Hello,
there is no built-in option. But you can do it with public API of the component
You can detect creation of an event using onBeforeEventCreated API event, check number of user’s events and cancel creation if necessary

docs.dhtmlx.com/scheduler/api__s … vents.html
docs.dhtmlx.com/scheduler/api__s … event.html