Home Unanswered Active Tags New Question

Formatting text inside the cells

Is there a way of modifying text inside the cells rather than displaying "Event Name (11:00 AM - 8/25/2010 5:00 PM)"? Without the ability to modify this, it is not possible to handle International Date/time format (Example:11:00 AM - 25-Aug-2010 5:00 PM).

Thanks,

Sash

Asked by Anonymous 1 year ago.
Replies

The text can be customized using BeforeEventRender event handler. This event is fired once for each event in the DataSource. You can set custom HTML by changing e.InnerHTML property:

protected void DayPilotCalendar1_BeforeEventRender(object sender, BeforeEventRenderEventArgs e)
{
  e.InnerHTML = e.Text + " " + e.Start.ToShortTimeString();
}
Comment posted by Dan Letecky 9 months ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java