The onEventClick event handler is fired before the default event click action (defined using eventClickHandling property).
DayPilot.Queue.onEventClick(args);
dp.onEventClick = function(args) {
if (args.e.id() === "3") {
args.preventDefault();
}
};