DayPilot Knowledge Base

AJAX Calendar/Scheduling Controls
DayPilot Pro (AJAX Calendar Control)
» DayPilot ASP.NET Calendar
DayPilot Pro (AJAX Monthly Calendar Control)
» DayPilot ASP.NET Monthly Calendar
DayPilot Pro (AJAX Scheduler Control)
» DayPilot ASP.NET Scheduler
DayPilot » Knowledge Base » How to add image to an event in DayPilot Month

How to add image to an event in DayPilot Month

Last revision: Aug 24, 2010

month event image

You can add images to events using BeforeEventRender event handler:

    protected void DayPilotMonth1_BeforeEventRender(object sender, DayPilot.Web.Ui.Events.Month.BeforeEventRenderEventArgs e)
        if (e.Value == "11")
            e.InnerHTML = String.Format("<img src='../Media/red8x8.gif' width='8' height='8' valign='absmiddle' /> {0}", e.InnerHTML);

See also Demo/Month/CustomEventRendering.aspx.cs in the DayPilot package.


Events show HTML source during image export (PNG)
How to customize 'Week N' string in the Scheduler header
How To Set Up Overnight Shift Scheduling with DayPilot Calendar
How to upgrade from DayPilot Lite 3.0 to 3.1 [open-source]