Skip to main content

xlsx()

Description

Exports data from a treegrid to an Excel file

xlsx(config?: object): void;

Parameters:

  • config - (optional) an object with export settings. You can specify the following settings for export to EXCEL:
    • url?: string - (optional) the link to the server side where export will be processed. By default, it is "//export.dhtmlx.com/excel"
    • name?: string - (optional) the name of a ready Excel file

Example

// default export
treegrid.export.xlsx();

// export with config settings
treegrid.export.xlsx({
url: "//export.dhtmlx.com/excel"
});