exportPDF

Triggered when the ChartWizard export the chart to PDF.

Event Data

e.sender kendo.ui.ChartWizard

The widget instance.

e.chart kendo.ui.Chart

The Chart widget instance.

e.exportOptions Object

The exportOptions object instance.

Example - subscribing to the exportPDF 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
            },
            exportPDF: function (e) {
                console.log(e);
            },
        });
</script>

Example - subscribing to the exportPDF event after initialization

Open In Dojo
<div id="chartwizard"></div>
<script>
    function chartwizard_exportPDF(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("exportPDF", chartwizard_exportPDF);
</script>
In this article