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

DataTextField text with vbcrlf

Asked by Ainars
7 years ago.

Ja want set This text of DataTextField use with vbCRLF to break text to new line at appionments.

Answer posted by Dan Letecky [DayPilot]
7 years ago.

You can provide custom HTML that will be used for event content using BeforeEventRender event handler:

https://doc.daypilot.org/calendar/event-customization/

Your event handler could look like this (C#):

protected void DayPilotCalendar1_BeforeEventRender(object sender, BeforeEventRenderEventArgs e)
{
  e.Html = e.Text.Replace("\n", "<br>");
}
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.