More in this section

Forums / Set-up & Installation / Athletic Calendar

Athletic Calendar

2 posts, 0 answered
  1. mexner
    mexner avatar
    98 posts
    06 Apr 2006
    18 Nov 2007
    Link to this post

    Does anyone know how to (or already done...) modify the news control to show events that occur in the future?

    Currently, if I have 3 dates ( publication events)  with an event on each date,
     today - soccer match
     tomorrow - football match
     tomorrow +1 - lacrosse match

    The news list control will only show events where the publication date is less than or equal to today, which means I would only be able to see today's and past events.

    I need to be able to list and see all of my events in the future. It would really be nice to be able to adjust this to only see 1 month in advance (or maybe 3 months, 2 weeks, etc).

    I've looked over the TUI university NewEvents control, but the List<IMetaSearchInfo> filter does seem to be working properly.

    Any help/advice is much appreciated. Thanks!
  2. Bob
    Bob avatar
    330 posts
    30 Dec 2016
    19 Nov 2007
    Link to this post
    Hello Chris,

    To display all articles regardless of their publication and expiration dates, you have to set SelectMode property to SelectModes.All. The default value is SelectModes.Active.

    To see certain period in advance I suggest that you add another meta field for storing the actual date of the event and use Publication_Date and Expiration_Data fields to control the visibility of the articles. You can also use SelectedDate property to programmatically set the current date for the NewsList control.

    For more details on working with Meta fields, please see User Manual / Customizing Modules / Adding Custom Fields.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered