[Data Grid Reactive] Exporting Excel
Forge component by Bruno Martinho

I am using this code to export to excel. Is it possible to rename the file instead of DataGridReactive.xlsx?


GridAPI.GridManager.GetGridById($parameters.GridId).features.export.exportToExcel();

mvp_badge
MVP

Hi @Filipe Lourenço,

Thank you for your question.

The use case that you mention, makes perfect sense.

Quick question, can you tell us your opinion:
- should the developer have to pass the name with the extension (.xlsx)?
- when no name is passed would it be ok to keep that name?

Hope to hear from you,

RG

yes, without the extension and you can keep the default as it is

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.