How to customize day cells in flow view?

6 posts, 0 answers
  1. Wojciech
    Wojciech avatar
    5 posts
    Member since:
    Jul 2016

    Posted 14 Jul Link to this post

    (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?

  2. Sophi
    Admin
    Sophi avatar
    99 posts

    Posted 19 Jul Link to this post

    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
  3. DevCraft banner
  4. Wojciech
    Wojciech avatar
    5 posts
    Member since:
    Jul 2016

    Posted 19 Jul in reply to Sophi Link to this post

    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

  5. Wojciech
    Wojciech avatar
    5 posts
    Member since:
    Jul 2016

    Posted 19 Jul in reply to Wojciech Link to this post

    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

  6. Wojciech
    Wojciech avatar
    5 posts
    Member since:
    Jul 2016

    Posted 19 Jul in reply to Wojciech Link to this post

    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

  7. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 25 Jul Link to this post

    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
Back to Top
DevCraft banner