More in this section

Forums / Developing with Sitefinity / 6.3 Events List widget no EndDate No EventEnd

6.3 Events List widget no EndDate No EventEnd

2 posts, 0 answered
  1. Markus
    Markus avatar
    2763 posts
    25 Nov 2005
    28 Jan 2014
    Link to this post
    I have the problem that the End date in recurrent Events will come empty.

    Works in normal events. How do I display the end date of a recurrent event.

    The start 2 pm - 4 pm every week on Wednesday without enddate for example.

    <sf:FieldListView ID="FieldListView2" runat="server" Format="{EventStart.ToLocal():HH:mm }" /> -      <sf:FieldListView ID="FieldListView6" runat="server" Format="{EventEnd.ToLocal():HH:mm }" />

    Do I simple put an Enddate into the future 20 years or so. Or is there a smarter way to do it?

  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    17 Aug 2017
    31 Jan 2014
    Link to this post
    Hi Markus,

    If you select an end date for a recurrent event (see screenshot) the end date will be displayed on the front-end by default as shown here.

    Alternatively, you can display the end date by adding the following line into the template which you use to display the events:

    <sitefinity:TextField runat="server" DisplayMode="Read"
    Value='<%# ((DateTime)Eval("EventEnd")).ToLocalTime() %>' />

    Sabrie Nedzhip
    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
2 posts, 0 answered