A promise that will be resolved when the export completes.
<divid="treeList"></div><script>$("#treeList").kendoTreeList({toolbar:["pdf"],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}],pdfExport:function(e){/* The result can be observed in the DevTools(F12) console of the browser. */console.log("exporting PDF");}});var treelist =$("#treeList").data("kendoTreeList");
treelist.saveAsPDF();</script>
<divid="treeList"></div><script>$("#treeList").kendoTreeList({toolbar:["pdf"],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}],});var treelist =$("#treeList").data("kendoTreeList");
treelist.bind("pdfExport",function(e){/* The result can be observed in the DevTools(F12) console of the browser. */console.log("exporting pdf");});
treelist.saveAsPDF();</script>