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

How to customize day cells in flow view?

5 Answers 58 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.
Wojciech
Top achievements
Rank 1
Wojciech asked on 14 Jul 2016, 09:53 AM

(I'm using Xamarin dll version 2016.2.513.0.)

The solution suggested in the calendar specification (i.e. to override ViewForCellOfKind) doesn't seem to work flow view.

Is there a way to do it?

5 Answers, 1 is accepted

Sort by
0
Sophi
Telerik team
answered on 19 Jul 2016, 08:01 AM
Hello Wojciech,

You can customize the appearance of day cells with the updateVisualsForCell method of the TKCalendarDelegate. Consider the following snippet.
public override void UpdateVisualsForCell (TKCalendar calendar, TKCalendarCell cell)
{
    if (cell is TKCalendarDayCell) {
        TKCalendarDayCell dayCell = (TKCalendarDayCell)cell;
         cell.Style.TextColor = new UIColor.Green;
    }
}

Regards,
Sophi
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Wojciech
Top achievements
Rank 1
answered on 19 Jul 2016, 01:40 PM

Hi Sophi,

Indeed it is possible to update styles for the cell in the UpdateVisualsForCell. Unfortunately this method is called before events for the cell are calculated, and in my case the style of the cell depends on those events.

Is this a bug? Or a feature?

Regards,

Wojtek

0
Wojciech
Top achievements
Rank 1
answered on 19 Jul 2016, 01:47 PM

Hi,

In fact what I'm trying to achieve is to use flow calendar to show some events on it. The events are loaded from backend month by month. Do you have any recommendations, patterns, or best practices on how to work with such cases?

Regards,

Wojtek

0
Wojciech
Top achievements
Rank 1
answered on 19 Jul 2016, 01:50 PM

Hi,

In fact what I'm trying to achieve is to use flow calendar view to display events loaded from backed month by month. Do you have any recommendations or best practices to implement such a thing?

Regards,

Wojtek

0
Deyan
Telerik team
answered on 25 Jul 2016, 06:27 AM
Hi Wojciech,

Thanks for writing back and for the further clarifications.

Your case is a bit challenging. We're looking into ways to implement a proof of concept for your scenario and will get back to you until the end of the day.

Regards,
Deyan
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Calendar
Asked by
Wojciech
Top achievements
Rank 1
Answers by
Sophi
Telerik team
Wojciech
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or