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

FullScreen by default

3 Answers 66 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 14 Dec 2009, 10:52 AM
Is it possible to have the radEditor full screen by default when the page loads instead of having to click it?

Thank you.

3 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 14 Dec 2009, 11:42 AM
Hi Michael,

If you would like to open the editor in full screen mode when the page is loaded, you can use the editor's Fire client-side method to fire the ToggleScreenMode command as shown below:

aspx:
 
    <telerik:RadEditor ID="RadEditor1" OnClientLoad="OnClientLoad" Runat="server"
    </telerik:RadEditor> 

javascript:
 
<script type="text/javascript"
function OnClientLoad(editor, args) 
     editor.fire("ToggleScreenMode"); 
</script> 

-Shinu.
0
Michael
Top achievements
Rank 1
answered on 14 Dec 2009, 11:51 AM
Thank you for your reply, it worked great. Is it also possible to do this in codebehind as well?
0
Rumen
Telerik team
answered on 14 Dec 2009, 06:40 PM
Hello Michael,

You can set RadEditor in fullscreen mode only on the client side. In order to achieve your scenario you should import this script using one of the server-side methods: Page.RegisterStartupScript or Page.RegisterClientScriptBlock.

More information is available in this blog post: Executing JavaScript function from server-side code.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Michael
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Michael
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or