dataBinding
Fired before the widget binds to its data source.
Event Data
e.sender kendo.ui.ChartWizard
The widget instance.
e.data kendo.ui.Chart
The data to which the ChartWizard is about to bind.
Example - subscribing to the dataBinding event during initialization
<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
},
dataBinding: function (e) {
console.log(e);
},
});
</script>
Example - subscribing to the dataBinding event after initialization
<div id="chartwizard"></div>
<script>
function chartwizard_dataBinding(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("dataBinding", chartwizard_dataBinding);
</script>