Day Cell Heights

4 posts, 0 answers
  1. Jacob
    Jacob avatar
    3 posts
    Member since:
    Mar 2015

    Posted 09 Mar 2015 Link to this post

    Is there a way to increase the day cell heights when viewing the calendar in month mode?
  2. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 10 Mar 2015 Link to this post

    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.

     
  3. DevCraft banner
  4. Jacob
    Jacob avatar
    3 posts
    Member since:
    Mar 2015

    Posted 10 Mar 2015 in reply to Jack Link to this post

    Is It possible to decrease the number of weeks shown. It currently shows 6 weeks is it possible to make it 5?
  5. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 11 Mar 2015 Link to this post

    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.

     
Back to Top
DevCraft banner