Wrap subject text if it will not fit into the item on the scheduler

2 posts, 0 answers
  1. Adam
    Adam avatar
    10 posts
    Member since:
    Nov 2010

    Posted 11 May 2011 Link to this post

    Hello there. 

    I have successfully used the RadScheduler component to display tasks on a daily, weekly and monthly basis. 

    If the subject text displayed for the task does not fit onto the item shown in the scheduler, is there a way to make it autosize so all text is visible
  2. Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 16 May 2011 Link to this post

    Hello Adam,

    Thank you for your question.

    Yes, there is a way to make the text wrap. To achieve this you should subscribe to the AppointmentFormatting event and set the TextWrap property of the AppointmentElement:

    private void radScheduler1_AppointmentFormatting1(object sender, SchedulerAppointmentEventArgs e)
        e.AppointmentElement.TextWrap = true;

    I hope this helps. Feel free to write back if you have any additional questions.

    Best wishes,
    Ivan Todorov
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Back to Top