Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 99250

Load theme before view presented, display only a number for date text, & slow loading times

$
0
0
Hello, Michael,

Loading events just for the presented month can be achieved by implementing TKCaledarDelegate's method WillNavigateToDate. You can check the month of the date that the calendar is going to navigate and if it is different than the current month invoke the Update method of the calendar's presenter. This would request again EventsForDate. This way you can load only the events of interest.

You can remove the circle by setting size of the EventShape property of TKCalendarDayCellStyle to CGSize.Empty and draw the events as text like in the code below:
public override void UpdateVisualsForCell(TKCalendar calendar, TKCalendarCell cell)
{
    if (cell is TKCalendarDayCell)
    {
        ((TKCalendarDayCell)cell).Style.EventShape.Size = CGSize.Empty;
        ((TKCalendarDayCell)cell).Style.DisplayEventsAsText = true;
    }
}

I can confirm that currently we have an issue with setting the MaxEventsCount property. I have logged it and updated your Telerik points for reporting this.


Regards,
Adrian
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

Viewing all articles
Browse latest Browse all 99250

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>