More in this section

Forums / Developing with Sitefinity / Download List control to group items for download by parent library

Download List control to group items for download by parent library

2 posts, 0 answered
  1. Rabindra
    Rabindra avatar
    106 posts
    Registered:
    17 May 2009
    15 Mar 2010
    Link to this post
    hi,
    I am not succeeding on implementing this example.
    http://www.sitefinity.com/blogs/radoslavgeorgiev/posts/10-02-17/download_list_control_to_group_items_for_download_by_parent_library.aspx

    On the example pasted on the page, it's written
    public class CustomDownloadList: DownloadList
    whereas on the download file it's written
    public class CustomDownloadList: ContentView

    When I use the "public class CustomDownloadList: DownloadList", I can select which Library I want to display. Once I save it, all the download files are displayed in one and not sorted by Library.
    And when I use "public class CustomDownloadList: ContentView", I cannot select which Library I want to display, but all files are displayed per library.

    Am I doing something wrong here?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    15 Mar 2010
    Link to this post
    Hello Rabindra,

    The example shows a class the inherits from DownloadList control. The DownloadList control itself inherits indirectly from ContentView.  You can find more information about class inheritance at



    Also the implementatin require that you should create a toolbox for the CustomDownloadList.

    public class CustomDownloadListToolboxItem : ToolboxItem
    {
     
        public CustomDownloadListToolboxItem()
            : base(typeof(CustomDownloadList))
        {
            base.DisplayName = "CustomDownloadList_DisplayName";
            base.Description = "DownloadList_Description";
             
        }
    }


    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about 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