Edit this page

saveAsExcel

Initiates the Excel export. Also fires the excelExport event.

Calling this method could trigger the browser built-in popup blocker in some cases. To avoid that, always call it as a response to an end-user action e.g. button click.

Example - manually initiate Excel export

<button id="export">Export to Excel</button>
<div id="treeList"></div>
<script>
    $("#treeList").kendoTreeList({
        columns: [ "id", "name" ],
        dataSource: [
            { id: 1, parentId: null, name: "Jane Doe", age: 30 },
            { id: 2, parentId: 1, name: "John Doe", age: 33 }
        ]
    });
    $("#export").click(function(e) {
        var treeList = $("#treeList").data("kendoTreeList");
        treeList.saveAsExcel();
    });
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy