Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): 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

  • Rabindra Intermediate avatar

    Posted on Mar 15, 2010 (permalink)

    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?

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Mar 15, 2010 (permalink)

    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.

    Reply

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Developing with Sitefinity > Download List control to group items for download by parent library