Rad Editor Height Problem

2 posts, 0 answers
  1. Naupad
    Naupad avatar
    23 posts
    Member since:
    Dec 2011

    Posted 25 Jan 2012 Link to this post

    I am using Rad Editor on my xyz.aspx page inside Rad Panes. I am setting the Rad Editor height to 100% but its not having any effect. If I give height in pixel than its getting effect. But I can't use pixel as the user may change browser size, so its better to use percentage.

  2. Rumen
    Rumen avatar
    14459 posts

    Posted 26 Jan 2012 Link to this post


    Please, note that RadEditor does not support height in percents and to fit inside RadPane you should write javascript code which will set the Height of the editor's wrapper and IFRAME content area elements according to the height of the RadPane.

    This is a solution that you can further enhance if it does not work as expected in your specific scenario:

    <script type="text/javascript">
    function OnClientLoad(editor)
        var editorWidth = editor.get_element().style.width;
         setTimeout(function() {
            var paneHeight = $get("RAD_SPLITTER_PANE_CONTENT_Radpane2").style.height;
             //editor.setSize(editorWidth, parseInt(paneHeight));
             editor.get_element().style.height = "90%";
             $get("RadEditor1Wrapper").style.height = paneHeight;
         }, 1000);

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top