RadEditor for ASP.NET

SetSize Send comments on this topic.
Client-side API Reference > Methods > SetSize

Glossary Item Box

Sets the width and height of the RadEditor. 

function SetSize (width, height)

width integer Sets the width of RadEditor in pixels.
height integer Sets the height of RadEditor in pixels.


Example:
The following example will set the editor's width and height to 600 x 600 pixels when the editor is loaded on the page

ASPX/ASCX Copy Code
<script type="text/javascript">
function OnClientLoad(editor)
{
  
//set the width and height of the RadEditor
  
editor.SetSize("600","600");
}
</script>
<
rad:RadEditor
  id
="RadEditor1"
  
OnClientLoad="OnClientLoad"
  
Runat="server"
></rad:RadEditor>