This is a migrated thread and some comments may be shown as answers.

Rad editor how to customize "Page properties" dialog

1 Answer 102 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 02 Jan 2013, 10:39 AM
Hi !!

I have a RadEditor in aspx page and aspx page is in a RadWindow. Now, I want to hide the "page attributes" section from "page properties" dialog and shrink it to fit with rest sections i.e Body Attribute and Margins.

I tries a lot using javascript and jQuery but I am not getting the result. Please see attached image. Awaiting for your valuable response.

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 02 Jan 2013, 03:39 PM
Hi,

You can resize the Page Properties dialog using the following server code:

protected override void OnPreRenderComplete(System.EventArgs e)
{
        base.OnPreRenderComplete(e);
        DialogDefinition imagePropertiesDialog = RadEditor1.GetDialogDefinition("PageProperties");
        imagePropertiesDialog.Height = Unit.Pixel(900);
        imagePropertiesDialog.Width = Unit.Pixel(900);
}

The PageProperties dialog ascx file is available as an external dialog file in the EditorDialogs installation folder. You can find information how to customize the external dialogs files in the following live demo: Customizing Built-in Dialogs.

Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Dev
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or