More in this section

Forums / Developing with Sitefinity / Lists Control and display list horisontally

Lists Control and display list horisontally

2 posts, 0 answered
  1. Danni Veng
    Danni Veng avatar
    7 posts
    Registered:
    21 Sep 2009
    25 Nov 2009
    Link to this post
    Hi Support,

    I've searched the forum and done a lot of 'trial and error', and I know there is a quick solution. We have several contact pages where we show our employees with a picture and some text (name and title) and they are shown on the page four on each row/horisontally, i.e. four pictures on the first row and so on. I've tried to make some list items and insert the Lists Control as a 'simple list' - but it shows the list items with only one at each line. How do I manage my contact page?


  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    26 Nov 2009
    Link to this post
    Hello Danni Veng,

    The list items are displayed using an ASP.NET Repeater control. So what you can do in the case would be to download the External Templates for your version of Sitefinity and modify the control templates for the public views of the List control. In the case you can take the simple list template - ~/Sitefinity/ControlTemplates/Lists/SimpleListView.ascx and provide your own styles of the control. You just have to make the CSS file link to point to your custom styles for the repeater.
    <telerik:CssFileLink ID="CssFileLink1" FileName="~/pathtoyourcustomcss" Media="screen" runat="server" />


    Then you can just map the template for the Simple List View with the following view settings in your controls config file:
    <viewSettings hostType="Telerik.Lists.WebControls.ListDisplay">
          <additionalTemplates>
            <!--Simple list-->
            <add key="SimpleListTemplatePath" layoutTemplatePath="~/Sitefinity/ControlTemplates/Lists/SimpleListView.ascx" />
          </additionalTemplates>
        </viewSettings>

    Sincerely yours,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered