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

Rad Editor Height Problem

1 Answer 124 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Naupad
Top achievements
Rank 1
Naupad asked on 25 Jan 2012, 10:31 PM
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.

HELP!!!!!!

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Jan 2012, 03:26 PM
Hello,

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;
    alert(editorWidth);
     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);
}
</script>

Kind regards,
Rumen
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
Tags
Editor
Asked by
Naupad
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or