New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Resize the Dropdown Header and Pop-up Size

You can set the header and pop up width and height of a specified dropdown tool of RadEditor for ASP.NET AJAX:

  • through the ToolsFile.xml file:
<tools>    
    <tool name="FormatBlock" popupheight="250px"/>    
    <tool name="FontName" popupwidth="300px" />    
    <tool name="RealFontSize" width="200px"   />
</tools>
  • or through the code behind:
//get a reference to the desired dropdown tool
Telerik.Web.UI.EditorTool tool = RadEditor1.Tools[5].FindTool("FontName");
//set the desired pop up width and height
tool.Attributes["popupwidth"] = "300px";
tool.Attributes["popupheight"] = "300px";
//set the desired dropdown header width
tool.Attributes["width"] = "300px";
'get a reference to the desired dropdown tool
Dim tool As Telerik.Web.UI.EditorTool = RadEditor1.Tools(5).FindTool("FontName")
'set the desired pop up width and height
tool.Attributes("popupwidth") = "300px"
tool.Attributes("popupheight") = "300px"
'set the desired dropdown header width
tool.Attributes("width") = "300px"
In this article