expandMember

Fired before column or row field is expanded.

The event handler function context (available via the this keyword) will be set to the widget instance.

Event Data

e.preventDefault Function

If invoked prevents the expand and the widget will remain in its current state.

e.sender kendo.ui.PivotGridV2

The widget instance which fired the event.

e.axis String

The axis that will be expanded. Possible values columns or rows.

e.path String

The path to the field that will be expanded.

Example - subscribe to the "expandMember" event during initialization

<div id="pivotgrid"></div>
<script>
$("#pivotgrid").kendoPivotGridV2({
    height: 550,
    expandMember: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
        console.log("expand member");
    },
    dataSource: {
        type: "xmla",
        columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],
        rows: [{ name: "[Product].[Product]" }],
        measures: ["[Measures].[Internet Sales Amount]"],
        transport: {
            connection: {
                catalog: "Adventure Works DW 2008R2",
                cube: "Adventure Works"
            },
            read: 'https://demos.telerik.com/olap/msmdpump.dll'
        }
    }
});
</script>

Example - subscribe to the "expandMember" event after initialization

<div id="pivotgrid"></div>
<script>
function expandMember(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log("expand member");
}

$("#pivotgrid").kendoPivotGridV2({
    height: 550,
    dataSource: {
        type: "xmla",
        columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],
        rows: [{ name: "[Product].[Product]" }],
        measures: ["[Measures].[Internet Sales Amount]"],
        transport: {
            connection: {
                catalog: "Adventure Works DW 2008R2",
                cube: "Adventure Works"
            },
            read: 'https://demos.telerik.com/olap/msmdpump.dll'
        }
    }
});
var pivotgrid = $("#pivotgrid").data("kendoPivotGridV2");
pivotgrid.bind("expandMember", expandMember);
</script>
In this article