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

Forums / General Discussions / Event Widgets Templates not displaying correctly after 4.1 update

Event Widgets Templates not displaying correctly after 4.1 update

6 posts, 0 answered
  1. Matt
    Matt avatar
    24 posts
    Registered:
    17 Sep 2009
    22 Apr 2011
    Link to this post
    Since updating from 4.0 to 4.1 the event widgets are not working. The single page is displaying:

    • Dates: 07 – 10 Nov, 2011
    • <%$ Resources:EventsResources, Where %> Asheville, North Carolina
    • <%$ Resources:EventsResources, WebSite %> http://www.nccep.org

    I have even switched between other templates and the same issue is occurring. No more time today to deal with more 4.1 issues, has anyone else had this problem with the event module?

    Guess I will disable the list hyperlink until Monday until I can fix the single page template.

    --------------------------------------------------------------------------------------------------------------------------------------------------------------

    <%@ Control Language="C#" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit" Assembly="Telerik.Sitefinity" %>
    <%@ Import Namespace="Telerik.Sitefinity" %>    

    <telerik:RadListView ID="SingleItemContainer" ItemPlaceholderID="ItemContainer" AllowPaging="False" runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false">
        <LayoutTemplate>
            <div class="sfeventDetails">
                <div class="sfeventLinksWrp">
                    <sf:MasterViewHyperLink class="sfeventBack" Text="<%$ Resources:EventsResources, AllEvents %>" runat="server" />
                </div>
                <asp:PlaceHolder ID="ItemContainer" runat="server" />
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <h1 class="sfeventTitle">
                <asp:Literal ID="Literal1" Text='<%# Eval("Title") %>' runat="server" />
            </h1>
            <sf:ContentBrowseAndEditToolbar ID="BrowseAndEditToolbar" runat="server" Mode="Edit,Delete,Unpublish"></sf:ContentBrowseAndEditToolbar>
            <ul class="sfeventDatesLocationContacts">
                
    <sf:FieldListView ID="EventDates" runat="server" WrapperTagName="li" />
                

    <sf:FieldListView ID="Location" runat="server"
                    Text="<%$ Resources:EventsResources, Where %> {0}" Properties="City, State, Country"
                    WrapperTagName="li"
                />
                <sf:FieldListView ID="Street" runat="server"
                    Text="<%$ Resources:EventsResources, Address %> {0}" Properties="Street"
                    WrapperTagName="li"
                />
                <sf:FieldListView ID="ContactName" runat="server"
                    Text="<%$ Resources:EventsResources, ContactName %> {0}" Properties="ContactName, ContactEmail"
                    WrapperTagName="li"
                />
                <sf:FieldListView ID="Web" runat="server"
                    Text="<%$ Resources:EventsResources, WebSite %> {0}" Properties="ContactWeb"
                    WrapperTagName="li"
                />
                <sf:FieldListView ID="Phone" runat="server"
                    Text="<%$ Resources:EventsResources, ContactPhone %> {0}" Properties="ContactPhone, ContactCell"
                    WrapperTagName="li"
                />
            </ul>
            <%--<div class="sfgcAuthor">
                <asp:Literal ID="Literal2" Text="<%$ Resources:Labels, By %>" runat="server" />
                <sf:PersonProfileView runat="server" /> | <asp:Literal ID="Literal3" Text='<%# Eval("PublicationDate", "{0:dd MMM, yyyy}") %>' runat="server" />
            </div>--%>
            <div class="sfeventContent">
                <asp:Literal ID="Literal4" Text='<%# Eval("Content") %>' runat="server" />
            </div>
       
        </ItemTemplate>
    </telerik:RadListView>
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    28 Apr 2011
    Link to this post
    Hello Matt,

    Can you please show us a screenshot of how the events appear on your public site? We have tried both your template and the default one (found below and did not notice any problems on upgraded websites):
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit" Assembly="Telerik.Sitefinity" %>
    <%@ Import Namespace="Telerik.Sitefinity" %>   
     
    <telerik:RadListView ID="SingleItemContainer" ItemPlaceholderID="ItemContainer" AllowPaging="False" runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false">
        <LayoutTemplate>
            <div class="sfeventDetails">
                <div class="sfeventLinksWrp">
                    <sf:MasterViewHyperLink class="sfeventBack" Text="<%$ Resources:EventsResources, AllEvents %>" runat="server" />
                </div>
                <asp:PlaceHolder ID="ItemContainer" runat="server" />
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <h1 class="sfeventTitle">
                <asp:Literal ID="Literal1" Text='<%# Eval("Title") %>' runat="server" />
            </h1>
            <sf:ContentBrowseAndEditToolbar ID="BrowseAndEditToolbar" runat="server" Mode="Edit,Delete,Unpublish"></sf:ContentBrowseAndEditToolbar>
            <ul class="sfeventDatesLocationContacts">
                <sf:FieldListView ID="EventDates" runat="server" WrapperTagName="li" />
                <sf:FieldListView ID="Location" runat="server"
                    Text="<%$ Resources:EventsResources, Where %>" Properties="City, State, Country"
                    WrapperTagName="li"
                />
                <sf:FieldListView ID="Street" runat="server"
                    Text="<%$ Resources:EventsResources, Address %>" Properties="Street"
                    WrapperTagName="li"
                />
                <sf:FieldListView ID="ContactName" runat="server"
                    Text="<%$ Resources:EventsResources, ContactName %>" Properties="ContactName, ContactEmail"
                    WrapperTagName="li"
                />
                <sf:FieldListView ID="Web" runat="server"
                    Text="<%$ Resources:EventsResources, WebSite %>" Properties="ContactWeb"
                    WrapperTagName="li"
                />
                <sf:FieldListView ID="Phone" runat="server"
                    Text="<%$ Resources:EventsResources, ContactPhone %>" Properties="ContactPhone, ContactCell"
                    WrapperTagName="li"
                />
            </ul>
            <%--<div class="sfgcAuthor">
                <asp:Literal ID="Literal2" Text="<%$ Resources:Labels, By %>" runat="server" />
                <sf:PersonProfileView runat="server" /> | <asp:Literal ID="Literal3" Text='<%# Eval("PublicationDate", "{0:dd MMM, yyyy}") %>' runat="server" />
            </div>--%>
            <div class="sfeventContent">
                <asp:Literal ID="Literal4" Text='<%# Eval("Content") %>' runat="server" />
            </div>
            <sf:ContentView
                 id="commentsListView"
                 ControlDefinitionName="EventsCommentsFrontend"
                 DetailViewName="CommentsMasterView"
                 ContentViewDisplayMode="Master"
                 runat="server" />
            <sf:ContentView
                 id="commentsDetailsView"
                 ControlDefinitionName="EventsCommentsFrontend"
                 DetailViewName="CommentsDetailsView"
                 ContentViewDisplayMode="Detail"
                 runat="server" />
        </ItemTemplate>
    </telerik:RadListView>


    Greetings,
    Radoslav Georgiev
    the Telerik team

  3. Matt
    Matt avatar
    24 posts
    Registered:
    17 Sep 2009
    29 Apr 2011
    Link to this post
    Well I am not sure, I went to add the list link back to get a screen shot of the page and everything is appearing correct. I am not sure why it is displaying correctly now, but it is.

    I know in the meantime our client has removed and added some events and the issue was occurring after we had just deployed the site. I am sure that it was not displaying properly because I was giving our client a tutorial on adding events when it was notices.

    Anyway, Thanks for checking I will chalk this one up to the phantom. Great CMS by the way, just got to work through a few 4.1 bugs.
  4. Matt
    Matt avatar
    24 posts
    Registered:
    17 Sep 2009
    29 Apr 2011
    Link to this post
    I thought I was going crazy yesterday, but today I can get you screen shots. 

    The display issue is between browsers, Firefox is what was giving the display issue, Here is the page: http://meddata.com/news-events/upcoming-conferences/2011/04/11/texas-acep-annual-meeting

    Attached are screen shots from different browsers and os's
  5. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    04 May 2011
    Link to this post
    Hello Matt,

    The problem is caused by "{0}" set in the Text property of FieldListView declaration:

    <sf:FieldListView
           ID="Location" runat="server"
           Text="<%$ Resources:EventsResources, Where %> {0}"
           Properties="City, State, Country"
           WrapperTagName="li" />

    To solve the issue you need just to remove it.

    Let us know if this helps.

    Best wishes,
    Pepi
    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
  6. Matt
    Matt avatar
    24 posts
    Registered:
    17 Sep 2009
    05 May 2011
    Link to this post
    Thanks, that was the issue.
6 posts, 0 answered