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
: 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?