GridView.ObjectsAsImage

Syntax

ObjectsAsImage: Boolean

Description

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

Comments

If the property is set to True, the chart or map is an image; if the property is set to False (default), the chart or map is an instance of the MapChart component.

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 which brings up the "Image" or "Chart" message, depending on whether the regular report chart is an image or an instance of MapChart component.

See also:

GridView