Rad editor how to customize "Page properties" dialog

2 posts, 1 answers
  1. Dev
    Dev avatar
    28 posts
    Member since:
    Jan 2011

    Posted 02 Jan 2013 Link to this post

    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
  2. Answer
    Rumen
    Admin
    Rumen avatar
    14075 posts

    Posted 02 Jan 2013 Link to this post

    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.
Back to Top