Try Now
More in this section

Forums / Developing with Sitefinity / Upload Custom Control DLL

Upload Custom Control DLL

2 posts, 0 answered
  1. Luc Baeten
    Luc Baeten avatar
    169 posts
    23 Sep 2005
    12 Jan 2011
    Link to this post
    hello Sitefinity Team

    I have created a custom control with a designer class and template.
    Everything works fine as long as I define the control in the web.config manually.

    However when I try to upload the DLL with the 'Upload Control' functionality in the Toolbox of Sitefinity two classes are registred in the toolBoxControls section of the web.config file:
    -    the custom control (this is correct) but section and description is empty
    -     the designer class for the custom control

    I have two questions
    1) How can I prevent the designer class (inherited from Telerik.Framework.Web.Design.ControlDesigner ) to be added in the web.config. I don't want to have it visible in the Toolbox; it only confuses the customer

    2) How can I specify the section and description for the real custom control. I defined a ToolboxItem class and used it as specified below.

        public class CustomControl : Telerik.Cms.Web.UI.SimpleControl, IEmptyControl
        public class CustomToolboxItem: System.Drawing.Design.ToolboxItem
            public CustomToolboxItem()
                : base(typeof(CustomControl ))
                base.DisplayName = "CustomControl ";
                base.Description = "Displays the CustomControl for Sitefinity!";

    However I don't get it to work. Could you please help?

    Luc Baeten

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    19 Oct 2016
    23 Jan 2011
    Link to this post
    Hello Luc,

    I sent a reply to your support request. Please check it out.

    Kind regards,
    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