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

Calendar Control: Is it possible to wrap text for calendar event using ipad theme?

1 Answer 67 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brian
Top achievements
Rank 1
Brian asked on 07 Feb 2015, 03:14 PM
I have events that I would like to have line-wrap and the control currently uses an ellipses to indicate more text.   I haven't found a way to turn that off or cause it to line wrap.   Any suggestions on how to accomplish that?

Thanks,

Brian

1 Answer, 1 is accepted

Sort by
0
Adrian
Telerik team
answered on 10 Feb 2015, 04:07 PM
Hello Brian,

Thank you for contacting us.

Currently TKCalendar does not support this functionality out of the box. To achieve the desired scenario you should subclass TKCalendarDayCell  and implement a method called drawEvents:rect: where you can manually draw the events. Please consider the code snippet below: 
@implementation MyCell
 
- (void)drawEvents:(CGContextRef)context rect:(CGRect)rect
{
    for (TKCalendarEvent *event in self.events) {
        // drawing code
    }
}
 
@end

This sounds like a reasonable suggestion and we will consider implementing such functionality in one of our future releases. I logged it in our feedback portal where you can vote/comment. I also updated your Telerik points for this suggestion.

I hope this helps. Should you have further questions, I will be glad to assist you.

Regards,
Adrian
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Calendar
Asked by
Brian
Top achievements
Rank 1
Answers by
Adrian
Telerik team
Share this question
or