The onEventSelect event handler is fired before the event is to be selected as a result of event click when eventClickHandling is set to "Select".
DayPilot.Queue.onEventSelect(args);