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

Forums / Developing with Sitefinity / Filter Expression - Events in the next 7 days

Filter Expression - Events in the next 7 days

4 posts, 0 answered
  1. Mark
    Mark avatar
    86 posts
    Registered:
    08 Feb 2010
    28 Apr 2011
    Link to this post
    Hi

    I want to show all events starting in the next 7 days
    in the filter expression i've tried using
    Event_Start <= "#now(+7)"

    But this doesn't work
    can someone please give me the correct expression for this
    thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    02 May 2011
    Link to this post
    Hi Markus,

    Using the UI ( control designer of the control) you can set only certain dates like 2011/5/12. You can achieve your goal by creating a custom control that inherits from the EventsView and override CreateChildControls method where before calling the base you should use ContentFilterBuilder to and filter dynamically.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Mark
    Mark avatar
    86 posts
    Registered:
    08 Feb 2010
    03 May 2011
    Link to this post
    Thanks Ivan

    I've had a few issues with this
    I've now stripped it back and still having issues
    the user control just contains:

    Imports Telerik.Events.WebControls
      
    Partial Class UserControls_EventsListNew
    Inherits EventsView
      
    End Class

    However i'm getting the error

    Error 1 property 'SupportAutoEvents' cannot be declared 'Overrides' because it does not override a property in a base class. C:\Users\markus\AppData\Local\Temp\Temporary ASP.NET Files\root\ac7f5319\ca493d9f\App_Web_ouc2lo0k.0.vb 74 

    this line is:
    Protected Overrides ReadOnly Property SupportAutoEvents() As Boolean


    any ideas?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    06 May 2011
    Link to this post
    Hi ,

    From where this property comes from SupportAutoEvents? You cannot override properties that are not in the base class.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered