+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / not show expired events

not show expired events

4 posts, 0 answered
  1. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    08 Apr 2011
    Link to this post
    I'm using the following to get all events and binding my datalist
    Telerik.Events.EventsManager eventsManager = new Telerik.Events.EventsManager("Events");
           IList listOfNewsItems = eventsManager.Content.GetContent();

    Something I just noticed is that its still showing events that have an expired date, how can I get it so any event that is expired doesn't show in my list? I have several events that expired last week and earlier this week but I still see them in my list, I don't want to see them in my list.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    08 Apr 2011
    Link to this post
    Hi NuToSitefinity,

    You can use filter expression parameter of GetContent method.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

  3. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    08 Apr 2011
    Link to this post
    how???

    I don't see any examples showing anything about a filter, ??
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    08 Apr 2011
    Link to this post
    Hello NuToSitefinity,

    Take a look at this article

    http://www.sitefinity.com/help/developer-manual/content-items-get.html

    Best wishes,
    Ivan Dimitrov
    the Telerik team

Register for webinar
4 posts, 0 answered