Back to Devexpress

DimensionNotationsEnabled Function

xtrareports-js-devexpress-dot-reporting-dot-designer-dot-settings-dot-dimensionnotationsenabled-1.md

latest1.7 KB
Original Source

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

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

Parameters

NameTypeDescription
newValboolean

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 MeasurementDisplayed UnitImage
Imperial systeminches
Metric systemmillimeters
Screen coordinatespixels

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()
}