search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Event delete confirmation? (DayPilot Scheduler)

Asked by Anonymous
9 years ago.

hi;

i am using DayPilot Scheduler lite and i want to delete event when you click on it. but first i want to ask "are you sure?" with javascript confirmation box..

i try some JS code confirm("Are you sure?"); but it doesnt work?

can you help me please?

Answer posted by Dan Letecky [DayPilot]
9 years ago.

The Lite edition doesn't have a client-side (JavaScript) API. You can handle the EventClick event using JavaScript but you will need to invoke the delete command manually using custom PostBack call or using jQuery:

EventClickHandling="JavaScript"
EventClickJavaScript="if (confirm('Delete?') { __doPostBack('ctl00$ContentPlaceHolder1$DayPilotScheduler1','PK:{0}') }"
This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.