Home Unanswered Active Tags New Question

Event delete confirmation? (DayPilot Scheduler)

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?

Asked by Anonymous 1 year ago.
1 other person also wants an answer.
Replies

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}') }"
Answer posted by Dan Letecky [DayPilot] 9 months ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java