Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DimensionNotationsEnabled Function

Enables exact element size (dimension notations) on the reporting surface during resize operations. The notations are based on a specified report unit (inches, millimeters, or pixels).

#Declaration

TypeScript
export const DimensionNotationsEnabled: DevExpress.Analytics.Internal.IGlobalSubscribableValue<boolean>

#Parameters

Name Type Description
newVal boolean

true to enable dimension notations; otherwise, false.

#Returns

Type
boolean

#Remarks

The property’s default value is true. The notation are based on a selected report unit:

System of Measurement Displayed Unit Image
Imperial system inches Report Designer - Dimension Notations in inches
Metric system millimeters Report Designer - Dimension Notations in millimeters
Screen coordinates pixels Report Designer - Dimension Notations in pixels

Set the property to false to disable dimension notations during resize operations:

cshtml
<script>
    function onBeforeRender(s, e) {
        DevExpress.Reporting.Designer.Settings.DimensionNotationsEnabled(false);
    }
</script>

@{
    var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
        .Height("100%")
        .ClientSideEvents(configure => configure.BeforeRender("onBeforeRender"))
        .Bind(Model);
    @designerRender.RenderHtml()
}