Hello,
When I am trying to add RadEditor at runtime then 'Content' is not displaying.
Is anyone suggest what is the problem?
My Code is:
RadEditor editor = new RadEditor();
editor.Content="Test";
this.Page.Controls.Add(editor);
Thanks,
Darshan
2 Answers, 1 is accepted
0
Accepted
Rumen
Telerik team
answered on 18 May 2010, 11:43 AM
Hi Darshan,
RadEditor is an ASP.NET server control and as such it should be added to the Controls collection of the Form or another plaseholder / panel server element, but not directly to the Page. To fix the problem use this code:
RadEditor editor = new RadEditor();
editor.Content = "Test"; Page.Form.Controls.Add(editor);
All the best,
Rumen
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.