This is a migrated thread and some comments may be shown as answers.

Content is not displaying at runtime

2 Answers 22 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Darshan Shah
Top achievements
Rank 1
Darshan Shah asked on 18 May 2010, 11:02 AM
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

Sort by
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.
0
Darshan Shah
Top achievements
Rank 1
answered on 18 May 2010, 12:02 PM
Hello Rumen,
Its working.
My team and I are very Thankful to you.

Thanks and Regards,
Darshan
Tags
Editor
Asked by
Darshan Shah
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Darshan Shah
Top achievements
Rank 1
Share this question
or