The timeRangeMenuClickCallBack() method fires the TimeRangeMenuClick event on the server side using a CallBack (ASP.NET WebForms, ASP.NET MVC, Java).
DayPilot.Month.timeRangeMenuClickCallBack(s, command[, data]);s (DayPilot.Selection) - selected time range
command (string) - command name associated with the clicked menu item
data (object) - additional custom data
DayPilot.Selection is a simple class that has the following properties:
start (DayPilot.Date) - selection start
end (DayPilot.Date) - selection end
Use this legacy helper to invoke the server-side time range menu command using a CallBack request.
The optional data parameter lets you include additional custom data with the callback request.
dp.timeRangeMenuClickCallBack(s, "Insert", { source: "menu" });