How to restrict an event click

Hi,
I want to restrict event click based on condition

may be while template ready time
if(event cancelled){
make event disable
}

Hi

I am using below code

scheduler._click.buttons.cancel = function(id){ some_function(id); }; function some_function(id){ if(confirm("Do you want to cancel current event ?")){ //HERE I WANT TO EITHER DISABLE THAT EVENT OR IT SHOULD LOOK DIFFERENTLY(e.g CROSSED ) } }

HI

So there is no answer for this question in scheduler forum?

Do you mean click on the event in the scheduler or the click on the lightbox button?

Click on event

Till now no reply

I want to restrict event click or disable events

Click on event

You can use onClick event, that occurs , each time as user click some event
docs.dhtmlx.com/scheduler/api__s … event.html

returning false from event handler, will prevent the default behavior.