The timeRangeMenuClickCallBack() method fires the server-side TimeRangeMenuClick event using a callback in ASP.NET WebForms, ASP.NET MVC, and Java.
DayPilot.Calendar.timeRangeMenuClickCallBack(s, command[, data]);s (DayPilot.Selection) - selected time range
command (string) - command value passed to the server-side TimeRangeMenuClick event
data (object) - optional additional custom data
DayPilot.Selection is a simple object with the following properties:
start (DayPilot.Date) - selection start
end (DayPilot.Date) - selection end
resource (string) - resource value (id)
const selection = dp.getSelection();
dp.timeRangeMenuClickCallBack(selection, "delete");