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

Script control 'Window' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors()

0 Answers 61 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Von
Top achievements
Rank 1
Von asked on 20 Aug 2010, 08:09 AM
Hi To All,

I want to share my experience with this issue and how I solved it. I Googled and searched in this forum but did not find a solution for me. The solution actually is quite simple, it's just a matter of not setting the Visible property of the RadEditor to false. So here's the issue.

I received the error when I have the RadEditor in a user control that is being loaded in another user control (although I believe the problem will be the same if there is only one level of user control). I have a RadEditor in my user control that is set to not visible - Visible="false". In my user control I override the Render method and I have this code: 
protected override void Render(HtmlTextWriter writer)
    {
        // some code goes here
 
        base.Render(writer);
    }

The exception is thrown at line "base.Render".

I want my RadEditor to be not visible initially and make it visible based on some logic. So what I did is instead of configuring the RadEditor to have Visible="false", I set the property in the code behind. I don't have the most detailed explanation why this happens and I definitely would appreciate if someone can explain it.

Thanks,
Von

No answers yet. Maybe you can help?

Tags
Editor
Asked by
Von
Top achievements
Rank 1
Share this question
or