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

Put tje coulored 'dot' higher in the views

1 Answer 61 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.
Eric
Top achievements
Rank 1
Eric asked on 06 Feb 2015, 02:07 PM
Hi,

I'm trying to put the "colored dots" in the Calendar more closer to the day number. I tried the RowSpacing and ColumnSpacing but that didn't work.

See the two attachments. The blue dot is standard. I would like it to go to the red-spot position.

Can anyone tell me how to do that?

Many thanks in advance,

Eric

1 Answer, 1 is accepted

Sort by
0
Accepted
Yoanna
Telerik team
answered on 06 Feb 2015, 05:06 PM
Hello, Eric,

Thank you for contacting us. 

You can achieve the desired effect by adopting TKCalendarDelegate and implementing its calendar:updateVisualsForCell: method. You will be able to customize properties of your cell in this method. For your goal you could use the eventInsets property of the cell class and apply larger inset from the bottom side of the event.

Consider the code snippet below:
- (void)calendar:(TKCalendar *)calendar updateVisualsForCell:(TKCalendarCell *)cell
{    
    if ([cell isKindOfClass:[TKCalendarDayCell class]]) {
  
        TKCalendarDayCell *dayCell = (TKCalendarDayCell *)cell;
        TKCalendarDayCellStyle* style= dayCell.style;
        style.eventInsets = UIEdgeInsetsMake(0, 0, 10, 0);
    }
}

If you have any further questions do not hesitate to ask.

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