excelExport
Fires when the user clicks the Export to Excel toolbar button.
Event Data
e.sender kendo.ui.PropertyGrid
The component instance which fired the event.
e.data Array
The array of data items that is used to create the Excel workbook.
e.workbook Object
The Excel workbook configuration object. Used to initialize a kendo.ooxml.Workbook
class. Modifications of the workbook will be reflected in the output Excel document.
e.preventDefault Function
If invoked, the PropertyGrid will not save the generated file.
Example - subscribing to the excelExport event during initialization
<div id="propertyGrid"></div>
<script>
$("#propertyGrid").kendoPropertyGrid({
model: {
details: {
title: "Title",
price: 15
},
foo: "bar",
baz: 5
},
width: 500,
excelExport: function(e) {
e.workbook.fileName = "Details.xlsx";
}
});
var component = $("#propertyGrid").data("kendoPropertyGrid");
component.saveAsExcel();
</script>