DayPilot Knowledge Base

AJAX Calendar/Scheduling Controls
DayPilot Pro (AJAX Calendar Control)
» DayPilot AJAX Calendar
DayPilot Pro (AJAX Monthly Calendar Control)
» DayPilot AJAX Monthly Calendar
DayPilot Pro (AJAX Scheduler Control)
» DayPilot AJAX 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


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 upgrade from DayPilot Lite 3.0 to 3.1 [open-source]
How to show event-specific context menu