RadControls for ASP.NET AJAX
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:
CopyC#
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);
}
CopyVB.NET
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 SubThe DialogDefinition class also provides also different useful RadWidow configuration setting such as Behaviors, VisibleStatusbar, VisibleTitlebar, etc.