You can use onBeforeCellRender event like this:
//...
dp.onBeforeCellRender = function(args) {
var events = dp.events.forRange(args.cell.start, args.cell.end);
// check events array for event types....
// ...
// has events?
var hasEvents = !events.isEmpty();
if (hasEvents) {
args.cell.cssClass = "has-events";
}
};