FullScreen by default

4 posts, 1 answers
  1. Michael
    Michael avatar
    18 posts
    Member since:
    Jun 2009

    Posted 14 Dec 2009 Link to this post

    Is it possible to have the radEditor full screen by default when the page loads instead of having to click it?

    Thank you.
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 Dec 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michael
    Michael avatar
    18 posts
    Member since:
    Jun 2009

    Posted 14 Dec 2009 Link to this post

    Thank you for your reply, it worked great. Is it also possible to do this in codebehind as well?
  5. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 14 Dec 2009 Link to this post

    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.
Back to Top