AJAX Calendar/Scheduling Controls
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?
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}') }"
DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java