GridView.ObjectsAsImage

Syntax

ObjectsAsImage: Boolean

Description

The ObjectAsImages property determines whether the chart or map positioned on the regular report sheet is an image or an instance of HighCharts or MapChart.

Comments

If this property is set to True, the chart or map is an image, if the property is False (default), the chart or map is an instance of the HighCharts or MapChart components respectively.

Example

To execute this example, the page must contain the ReportBox component named reportBox (see Example of ReportBox Component Layout). The opened regular report must contain a chart. Add a button clicking which will show a message that informs if the chart is an image:

 var isImage = new PP.Ui.Button({
     ParentNode: "but",
     Content: "isImage",
     Click: function () {
         grid = reportBox.getDataView().getGridView();
         if (grid.getObjectsAsImage() == True) {
             alert("Image")
         } else {
             alert("Chart")
         }
     }
 });

After executing the example a button is placed on the page: clicking this button brings up the "Image" or "Chart" message, depending on whether the regular report chart is an image or an instance of HighCharts.

See also:

GridView