The onShow event is fired before the modal dialog is displayed. You have a chance to modify the content DOM in case of showHtml().
DayPilot.Modal.onShow(args)