[starting from version: 2.8]
It is triggered when the drill-through view is opened. To know when the drill-through view is closed, use the drillthroughclose
event.
Data passed to the handler
data
– Cell Data Object | Chart Data Object. Information about the object opened in the drill-through view. If the drill-through view is opened on the grid, this is a Cell Data Object containing information about the cell. If the drill-through view is opened on charts, this is a Chart Data Object containing information about the chart segment.Examples
flexmonster.on('drillthroughopen', function (cell) {
alert("The drill-through view is opened for the cell - row: "
+ cell.rowIndex + ", column: "
+ cell.columnIndex
+ ", label: "
+ cell.label);
});
flexmonster.on('drillthroughopen', function(chart) {
alert("The drill-through view is opened for the chart segment with label: "
+ chart.label + ", measure: "
+ chart.measure.uniqueName
+ ", value: "
+ chart.value);
});
flexmonster.on('drillthroughopen', function(data) {
if (flexmonster.getOptions().viewType == "grid"){
alert("The drill-through view is opened for the cell - row: "
+ data.rowIndex + ", column: "
+ data.columnIndex
+ ", label: "
+ data.label);
}
else if (flexmonster.getOptions().viewType == "charts") {
alert("The drill-through view is opened for the chart segment with label: "
+ data.label + ", measure: "
+ data.measure.uniqueName
+ ", value: "
+ data.value);
}
});
See also