RadEditor for ASP.NET

Resizing The Dropdown Header And Pop Up Size Send comments on this topic.
DropDowns > Resizing The Dropdown Header And Pop Up Size

Glossary Item Box

 

You can resize the header and pop up width and heigh of a specified dropdown tool of RadEditor 7.x by using the following javascript code:

ASPX/ASCX Copy Code
<script type="text/javascript">
function OnClientLoad(editor)
{
   
var tool = editor.GetToolByName("FontName"); //returns a reference to the FontName dropdown tool

   
//set dropdown pop up width and height
   
tool.PopupWidth = 400;
   tool.PopupHeight
= 400;

   
//set the dropdown header width
   
var elem = tool.Element;
   elem.getElementsByTagName(
"COL")[0].width = "180px";
   elem.getElementsByTagName(
"DIV")[0].style.width = "180px";
}
</script>
<
rad:RadEditor id="RadEditor1" OnClientLoad="OnClientLoad" Runat="server"></rad:RadEditor>