close

Triggered when a ChartWizard is closed either by the user or through the close() method.

Event Data

e.sender kendo.ui.ChartWizard

The widget instance.

Example - subscribing to the close event during initialization

Open In Dojo
<div id="chartwizard"></div>
<script>
    $("#chartwizard").kendoChartWizard({
            dataSource: [
            [
                { field: 'Product Name', value: 'Calzone' },
                { field: 'Quantity', value: 1 },
                { field: 'Price', value: 12.39 },
                { field: 'Tax', value: 2.48 },
                { field: 'Total', value: 14.87 }
                ],
            ],
            window: {
                visible: true
            },
            close: function (e) {
                e.preventDefault();
                console.log(e);
            },
        });
</script>

Example - subscribing to the close event after initialization

Open In Dojo
<div id="chartwizard"></div>
<script>
    function chartwizard_close(e) {
        console.log(e);
    }
    $("#chartwizard").kendoChartWizard({
                dataSource: [
                [
                    { field: 'Product Name', value: 'Calzone' },
                    { field: 'Quantity', value: 1 },
                    { field: 'Price', value: 12.39 },
                    { field: 'Tax', value: 2.48 },
                    { field: 'Total', value: 14.87 }
                    ],
                ],
                window: {
                    visible: true
                },
            });
    var chartwizard = $("#chartwizard").data("kendoChartWizard");
    chartwizard.bind("close", chartwizard_close);
</script>
In this article