Home Unanswered Active Tags New Question

Calender event text and hover text

What is the best way to insert a line break in the text for an event. Using an html line break <br> does work however the text that is displayed with you mouseover and event also shows the <br>. Is there a way to prevent the mouseover text from displaying or is there a better way to use a line break

thanks

Asked by Jason 4 years ago.
Replies
You can prevent ToolTip from being active by setting ShowToolTip property to false (applies to DayPilotCalendar). I'm going to add this property to DayPilotVertical as well in the next relase.

There is also a useful event - BeforeEventRender that will allow you to change InnerHTML both of the event and the ToolTip. Here you can replace <br> elements with '\n' character in the ToolTip.
Comment posted by Dan Letecky 4 years ago.
this the ShowToolTip property available on the lite version or just on the purchased versions?
Comment posted by Jason 4 years ago.
It's just in the Pro version, but see line 538 in DayPilotCalendar.cs of the Lite version.
Comment posted by Dan Letecky 4 years ago.
This property was added to DayPilot Lite 2.3.
Comment posted by Dan Letecky 4 years ago.
New Reply
This reply is
Your name (optional):

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