This project is read-only.

Calendar order

Jan 12, 2009 at 9:16 PM
Hi,

I want to have the Calendar page view in reverse order (the most recent event in top of the page). So in CalendarList.aspx.cs how can I order the repeater ("rc") component?

thnx
Jan 14, 2009 at 7:13 PM
The calendar implements a GetEvents. Since the method happened to be virtual you have the option of creating a custom Calendar definition:

[

Definition]
[N2.Definitions.
ReplacesParentDefinition]
public class MyCalendar : Calendar
{
    public override IEnumerable<Event> GetEvents()
    {
        return base.GetEvents();
    }
}