AJAX Calendar/Scheduling Controls
I'm trying to pop a menu on TimeRangeSelected from DPMonthly as mentioned above - "menuCreate.show(dpc.getSelection())" - but getSelection doesn't seem to exist on the monthly calendar - is there any way to pop up a context menu on a left click on a day within DPMonth?
You can use the following code for DayPilot Month:
function invokeMenu(start) { var selection = new DayPilot.Selection(start, start.addDays(1), null, dpm); menuCreate.show(selection); }
TimeRangeSelected event must be handled on the client side:
TimeRangeSelectedHandling="JavaScript" TimeRangeSelectedJavaScript="invokeMenu(start)"
DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java