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

Content is not displaying at runtime

1 Answer 18 Views
General Discussions
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, 10:57 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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 May 2010, 12:09 PM
Hello,

Give a try with adding the RadEditor control to "Form" or "PlaceHolder" rather than 'Page' and see whether it is working fine?

C#:
 
    protected void Button2_Click(object sender, EventArgs e) 
    { 
        RadEditor editor = new RadEditor(); 
        editor.Content = "Test"
        this.form1.Controls.Add(editor); // Adds the control to form
    } 


-Shinu.
Tags
General Discussions
Asked by
Darshan Shah
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or