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

Forums / Designing & Styling / RadListView ItemSeparatorTemplate

RadListView ItemSeparatorTemplate

3 posts, 0 answered
  1. Gaston County
    Gaston County avatar
    38 posts
    Registered:
    23 Feb 2012
    24 Feb 2011
    Link to this post
    Hi all,

    Can someone clue me in why the ItemSeparatorTemplate is not rendering in this RadListView?

    <%@ Control Language="C#" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.Comments" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit" Assembly="Telerik.Sitefinity" %>
     
    <telerik:RadListView ID="NewsList" ItemPlaceholderID="ItemsContainer" runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false">
        <LayoutTemplate>
            <sf:ContentBrowseAndEditToolbar ID="MainBrowseAndEditToolbar" runat="server" Mode="Add"></sf:ContentBrowseAndEditToolbar>
            <div class="newsArchive">
                <asp:PlaceHolder ID="ItemsContainer" runat="server" />
            </div>
        </LayoutTemplate>
        <ItemTemplate>
               <div class="article">
                         <div class="publicationDate">
                       <div class="day"><sf:FieldListView ID="PublicationDateDay" runat="server" Format="{PublicationDate.ToLocal():dd}" /></div>
                       <div class="month">
                                                 <sf:FieldListView ID="PublicationDateMonth" runat="server" Format="{PublicationDate.ToLocal():MMM}" /></div>
                    <div class="year"><sf:FieldListView ID="PublicationDateYear" runat="server" Format="{PublicationDate.ToLocal():yyyy}" /></div>
                       </div>
                     
                         <h2>
              <sf:FieldListView ID="title" runat="server" Text="{0}" Properties="Title"  />
        </h2>
                         
        <sf:FieldListView ID="summary" runat="server" Text="{0}" Properties="Summary" WrapperTagName="p" />
                         
         <div class="articleLinkWrapper">
                          <sf:DetailsViewHyperLink ID="FullStory" Text="read more" runat="server" CssClass="articleLink" />
                          <sf:ContentBrowseAndEditToolbar ID="BrowseAndEditToolbar" runat="server" Mode="Edit,Delete,Unpublish" /> 
                          </div>
                </div>
            </ItemTemplate>
            <ItemSeparatorTemplate>
                  <hr />
            </ItemSeparatorTemplate>
    </telerik:RadListView>
    <sf:Pager id="pager" runat="server"></sf:Pager>
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    25 Feb 2011
    Link to this post
    Hello Zak,

    Try using this one

    <hr style="border: 1px solid #000;" />


    Kind regards,
    Ivan Dimitrov
    the Telerik team
  3. Gaston County
    Gaston County avatar
    38 posts
    Registered:
    23 Feb 2012
    25 Feb 2011
    Link to this post
    Ivan,

    This is extremely strange. If my <hr /> doesn't have some sort of attribute on it--style, class, etc.--it doesn't even render in the HTML. Is this expected behavior?
3 posts, 0 answered