The onTimeRangeRightClicked event is fired when a user clicks an existing time range selection, after the default action is performed (see also timeRangeRightClickHandling).
Note that right-clicking an unselected grid cell fires onTimeRangeSelect and onTimeRangeSelected.
DayPilot.Scheduler.onTimeRangeRightClicked(args);