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

[Solved] Change Page Margin to Inch from Pixels

1 Answer 109 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Manish Patel
Top achievements
Rank 1
Manish Patel asked on 15 Mar 2010, 08:33 AM
Hello there,

I am using telerik control and now i want to change Page margin from pixel to inch.

We can open this page by PageProperties tool.
Now on that page i want to change px to inch for all margins.

Is that possible to do?

Thanks,

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 15 Mar 2010, 05:49 PM
Hi Manish,

In order to achieve the requested feature you need to modify the built-in dialog PageProperties following these steps:
  • Set RadEditor to use external dialogs - ExternalDialogsPath property.
  • Copy the PageProperties.ascx file from your Telerik installation folder (usually c:\Program Files(x86)\Telerik\RadControls For ASP.NET AJAX XXXXXX\EditorDialogs) in the folder assigned to the ExternalDialogsPath property
  • Replace every instance of px with in, e.g.:
    //old line
    this._pageMarginLeft.value = marginLeft.replace("px", "");
     
    //new line
    this._pageMarginLeft.value = marginLeft.replace("in", "");

For your convenience I have attached modified PageProperties.ascx file.

More information regarding how to customize built-in dialogs is available in the following Live Demo:
Customize Built-in Dialogs

Sincerely yours,
Dobromir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Manish Patel
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or