public void AddEditorControl(Control parent, Control editor, Editor.Field field,
                                     bool hasRibbon, bool readOnly, string value)
        {
            SetProperties(editor, field, readOnly);
            SetValue(editor, value);

            var editorFieldContainer = new EditorFieldContainer(editor);

            editorFieldContainer.ID = field.ControlID + "_container";
            var control = (Control)editorFieldContainer;

            Context.ClientPage.AddControl(parent, control);
            SetProperties(editor, field, readOnly);
            SetAttributes(editor, field, hasRibbon);
            SetStyle(editor, field);

            SetValue(editor, value);
        }
        // Methods
        public void AddEditorControl(Control parent, Control editor,
                                     Sitecore.Shell.Applications.ContentManager.Editor.Field field, bool hasRibbon,
                                     bool readOnly, string value)
        {
            Assert.ArgumentNotNull(parent, "parent");
            Assert.ArgumentNotNull(editor, "editor");
            Assert.ArgumentNotNull(field, "field");
            Assert.ArgumentNotNull(value, "value");
            SetProperties(editor, field, readOnly);
            this.SetValue(editor, value);
            EditorFieldContainer container = new EditorFieldContainer(editor)
            {
                ID = field.ControlID + "_container"
            };
            Control control = container;

            Sitecore.Context.ClientPage.AddControl(parent, control);
            SetProperties(editor, field, readOnly);
            SetAttributes(editor, field, hasRibbon);
            SetStyle(editor, field);
            this.SetValue(editor, value);
        }
 // Methods
 public void AddEditorControl(Control parent, Control editor,
     Sitecore.Shell.Applications.ContentManager.Editor.Field field, bool hasRibbon,
     bool readOnly, string value)
 {
     Assert.ArgumentNotNull(parent, "parent");
     Assert.ArgumentNotNull(editor, "editor");
     Assert.ArgumentNotNull(field, "field");
     Assert.ArgumentNotNull(value, "value");
     SetProperties(editor, field, readOnly);
     this.SetValue(editor, value);
     EditorFieldContainer container = new EditorFieldContainer(editor)
                                      	{
                                      		ID = field.ControlID + "_container"
                                      	};
     Control control = container;
     Sitecore.Context.ClientPage.AddControl(parent, control);
     SetProperties(editor, field, readOnly);
     SetAttributes(editor, field, hasRibbon);
     SetStyle(editor, field);
     this.SetValue(editor, value);
 }