This is a migrated thread and some comments may be shown as answers.

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

1 Answer 71 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 11 May 2011, 02:11 PM
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

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 16 May 2011, 05:02 PM
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.
Tags
Scheduler and Reminder
Asked by
Adam
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or