Try Now
More in this section

Forums / General Discussions / Customize Alternating Items - DownLoadList

Customize Alternating Items - DownLoadList

2 posts, 0 answered
  1. Eric
    Eric avatar
    40 posts
    10 Apr 2009
    07 Oct 2009
    Link to this post

    I would like to use the DowloadList to display library downloads.  I do not want to use the table view.  The standard list view is almost what I want.  I do want to widen each item in the Download list and change the background color on alternating items.  How should I do that?
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    07 Oct 2009
    Link to this post
    Hi Eric,

    Thank you for using our services.

    To do this you will need to work with the external templates for the Download List. By default Sitefinity controls are using embedded templates, however you can download an archive of all control templates from the downloads section on Sitefinity.com, and add them to your site. Then you can choose the controls you want to modify the look and feel and make them use your external template. More information on how to work with external templates can be found here: How to map a view to an external template, in Sitefinity 3.6 or later?

    Then after you have the external templates you will need to modify the following file - ~/Sitefinity/Admin/ControlTemplates/Libraries/Modes/DownloadList.ascx. My suggestion would be to define an AlternatingItemTemplate besides the ItemTemplate. In the alternating item template you will have the same field, however you will apply different styles. Then all you have to do is to tell your download list control to use the modified control template, see attached image.
    All the best,
    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