Skip to main content

xlsx()

Exports data from a grid 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
grid.export.xlsx();

// export with config settings
grid.export.xlsx({
name:"grid_data",
url: "//export.dhtmlx.com/excel"
});

Related samples: Grid. Export to xlsx and csv

Related article: Exporting Grid