我想动态添加 RadEditor。它被添加到页面中,但是一旦发生回发,我就会找到具有相同 ID 'EditorRibbonBarResourcesHolder' 的多个控件。下面是我用来动态添加控件的代码。
RadEditor editor = new RadEditor();
editor.ID = "editor_" + itemTypeattribute.ItemAttributeID + rand.Next();
cellAttributeValue.Controls.Add(editor);
editor.DialogOpener.ID = "editor_dialopOpener_" + itemTypeattribute.ItemAttributeID;
editor.DialogOpener.Window.ID = "editor_dialopOpener_window_"+ ItemTypeattribute.ItemAttributeID;
editor.ClientIDMode = ClientIDMode.AutoID;
editor.EnableEmbeddedScripts = true;
editor.Height = 200;
任何帮助表示赞赏。谢谢