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

How to wrap detail text on Calendar Control?

Asked by annoiz
11 years ago.

Hi,
How to wrap detail text on Calendar Control? is it posible?

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

In the Calendar control (http://www.daypilot.org/calendar.html) the text should be wrapped automatically. You can force a new line by inserting "<br/>" (use e.InnerHTML in BeforeEventRender event handler).

See also:
http://www.daypilot.org/calendar-custom-event-rendering.html

Comment posted by annoiz
11 years ago.

Thank you for your reply, i mean is for daypilot month, the detail event not wrapped, and i can not force user to key in <br>..

Please advice. thanks in advance.

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

Since build 2523, DayPilotMonth control (http://www.daypilot.org/month.html) supports a new arrangement of event elements. The new option is EventTextLayer="Floats" and it's now the default value of EventTextLayer. It shows the start and end time using float:left and float:right styles and it automatically wraps the event text.

You can download the latest build in the sandbox:
http://www.daypilot.org/sandbox/

See also:
http://www.daypilot.org/daypilot-pro-for-asp-net-webforms-7-0.html

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.