The widget instance which fired the event.
(Available as of the 2014.3.1205 release) The array of data items that is used to create the Excel workbook.
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.
If invoked, the TreeList will not save the generated file.
Edit in Kendo UI Dojo Edit
< div id = " treeList" > </ div>
< script>
$ ( "#treeList" ) . kendoTreeList ( {
toolbar : [ "excel" ] ,
columns : [
{ field : "Name" } ,
{ field : "Position" }
] ,
dataSource : [
{ id : 1 , Name : "Daryl Sweeney" , Position : "CEO" , parentId : null } ,
{ id : 2 , Name : "Guy Wooten" , Position : "Chief Technical Officer" , parentId : 1 }
] ,
excelExport : function ( e ) {
e. workbook . fileName = "Employees.xlsx" ;
}
} ) ;
var treeList = $ ( "#treeList" ) . data ( "kendoTreeList" ) ;
treeList. saveAsExcel ( ) ;
</ script>
Edit in Kendo UI Dojo Edit
< div id = " treeList" > </ div>
< script>
$ ( "#treeList" ) . kendoTreeList ( {
toolbar : [ "excel" ] ,
columns : [
{ field : "Name" } ,
{ field : "Position" }
] ,
dataSource : [
{ id : 1 , Name : "Daryl Sweeney" , Position : "CEO" , parentId : null } ,
{ id : 2 , Name : "Guy Wooten" , Position : "Chief Technical Officer" , parentId : 1 }
] ,
excelExport : function ( e ) {
e. workbook . fileName = "Employees.xlsx" ;
}
} ) ;
var treeList = $ ( "#treeList" ) . data ( "kendoTreeList" ) ;
treeList. bind ( "excelExport" , function ( e ) {
e. workbook . fileName = "Employees.xlsx" ;
} ) ;
treeList. saveAsExcel ( ) ;
</ script>