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

Day Cell Heights

3 Answers 44 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.
Jacob
Top achievements
Rank 1
Jacob asked on 09 Mar 2015, 05:55 PM
Is there a way to increase the day cell heights when viewing the calendar in month mode?

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 10 Mar 2015, 09:47 AM
Hello Jacob,

Day cell height is calculated based on the calendar size in month view mode. You can increase the day cell height by increasing the size part of the calendar frame.

I hope this helps. Do not hesitate to contact us if you have further questions.

Regards,
Jack
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.

 
0
Jacob
Top achievements
Rank 1
answered on 10 Mar 2015, 01:01 PM
Is It possible to decrease the number of weeks shown. It currently shows 6 weeks is it possible to make it 5?
0
Jack
Telerik team
answered on 11 Mar 2015, 09:30 AM
Hello Jacob,

Yes, you can control this by changing the value of equalWeekNumber property in TKCalendarMonthPresenter. If this property is set to YES, TKCalendar will display 6 weeks in order to preserve the same calendar height when changing to a month with different week count. Consider the sample below:
TKCalendarMonthPresenter *presenter = (TKCalendarMonthPresenter*)self.calendarView.presenter;
presenter.equalWeekNumber = NO;

Please note that currently there is an issue and you should set the number of rows explicitly by setting the weeksInMonth property. We will address the issue in our upcoming service pack. Here is the code:
[presenter setValue:@5 forKey:@"weeksInMonth"];

I hope this helps.

Regards,
Jack
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
Jacob
Top achievements
Rank 1
Answers by
Jack
Telerik team
Jacob
Top achievements
Rank 1
Share this question
or