DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » Bugs » Event innerHTML when Printing

Event innerHTML when Printing

Dan,
The new print export function works great thanks.

But one problem I've found is that any html code added to the InnerHtml of an event just shows as text rather than rendered html.

example e.InnerHTML = "<span class='red'>ALERT</span> & e.InnerHTML
steve65 - 7/3/2008 11:22:22 AM
Since it's too difficult to implement HTML rendering, you should adjust your InnerHTML depending on DayPilotCalendar.IsExport value (true during export).
I'm considering the following improvements for the future:
  1. adding a simplified HTML rendering (selected tags like <b>, <a>, <img>)
  2. option to render the event rectangle manually in BeforeEventRender
I believe #2 would be more powerful.
Dan Letecky - 7/3/2008 8:41:26 PM
Post reply