Skip to main content

GridMeasureColumn Class

Declaration

export class GridMeasureColumn extends GridColumn

Remarks

A measure column displays summaries calculated against data in the bound data item.

GridWeb_MeasureColumn_Bars

Values in the measure column can be displayed as text or represented by bars. To select between these modes, use the GridMeasureColumn.DisplayMode property. For bars, you can use the GridMeasureColumn.alwaysShowZeroLevel property to specify whether to show a zero level.

Use the GridMeasureColumn.measure property to specify the measure to which the column binds. The dashboard calculates summaries against this measure using the function specified by the Measure.summaryType property.

constructor(dataItemProvider)

Initializes a new instance of the GridMeasureColumn class with specified settings.

Declaration

constructor(
    dataItemProvider: DevExpress.Dashboard.Model.DataDashboardItem,
    dashboardItemJSON?: any,
    serializer?: DevExpress.Analytics.Utils.ModelSerializer
)

Parameters

Name Type Description
dataItemProvider DataDashboardItem
dashboardItemJSON any

A JSON object used for dashboard deserialization. Do not pass this parameter directly.

serializer ModelSerializer

An object used for dashboard deserialization. Do not pass this parameter directly.

Properties

alwaysShowZeroLevel Property

Specifies whether the zero level of bars displayed within grid cells should always be visible.

Declaration

alwaysShowZeroLevel: ko.Observable<boolean>

Property Value

Type Description
Observable<boolean>

true, if the zero level of bars displayed within grid cells should always be visible; otherwise, false.

displayMode Property

Specifies how to display cell values.

Declaration

displayMode: ko.Observable<DevExpress.Dashboard.Model.GridMeasureColumnDisplayMode>

Property Value

Type Description
Observable<GridMeasureColumnDisplayMode>

A GridMeasureColumnDisplayMode value that specifies how to display cell values.

measure Property

Specifies a measure that supplies data used to calculate the column values.

Declaration

measure: ko.Observable<DevExpress.Dashboard.Model.Measure>

Property Value

Type Description
Observable<Measure>

A Measure object specifying a measure that provides data used to calculate the column values.