RadEditor for ASP.NET AJAX

RadControls Send comments on this topic.
Resizing RadEditor's dialogs
Controls > RadEditor > Dialogs > Examples > Resizing RadEditor's dialogs

Glossary Item Box

 

The DialogDefinition class of RadEditor provides the ability to change the initial size to the RadEditor's dialogs in the Page_PreRenderComplete event. For example to increase the size of the LinkManager dialog get a reference to it with the GetDialogDefinition method of the DialogDefinition class and using the Width and Height properties set the desired dimension:

 

Resizing Link Manager C# Copy Code
   protected override void OnInit(EventArgs e)
   {
       
base.OnInit(e);
       
this.Page.PreRenderComplete += new EventHandler(Page_PreRenderComplete);
   }
   
void Page_PreRenderComplete(object sender, EventArgs e)
   {
       Telerik.Web.UI.DialogDefinition linkManager = RadEditor1.GetDialogDefinition(
"LinkManager");
       linkManager.Height = Unit.Pixel(500);
       linkManager.Width = Unit.Pixel(500);
   }

 

Resizing Link Manager VB.NET Copy Code
Protected Overloads Overrides Sub OnInit(ByVal e As EventArgs)
    MyBase.OnInit(e)
    AddHandler Me.Page.PreRenderComplete, AddressOf Page_PreRenderComplete
End Sub

Sub Page_PreRenderComplete(ByVal sender As Object, ByVal e As EventArgs)
    Dim linkManager As Telerik.Web.UI.DialogDefinition = RadEditor1.GetDialogDefinition("LinkManager")
    linkManager.Height = Unit.Pixel(500)
    linkManager.Width = Unit.Pixel(500)
End Sub

 

The DialogDefinition class also provides also different useful RadWidow configuration setting such as Behaviors, VisibleStatusbar, VisibleTitlebar, etc.