search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Formatting text inside the cells

Asked by Anonymous
10 years ago.

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

Comment posted by Dan Letecky
9 years ago.

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();
}
This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.