From 295ca3c7419e76388f5ee2de29939f0c5ea82d1d Mon Sep 17 00:00:00 2001 From: Dimo Dimov <961014+dimodi@users.noreply.github.com> Date: Fri, 31 Oct 2025 13:14:30 +0200 Subject: [PATCH 1/4] docs(Grid): Add programmatic export limitations --- components/grid/export/excel.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/grid/export/excel.md b/components/grid/export/excel.md index 0cc318ff11..b2a4800da3 100644 --- a/components/grid/export/excel.md +++ b/components/grid/export/excel.md @@ -132,8 +132,13 @@ You can programmatically invoke the export feature of the Grid, by using the fol | Method | Type | Description | | --- | --- | --- | -| `SaveAsExcelFileAsync` | `ValueTask` | Sends the exported excel file to the browser for download. You can pass [`GridExcelExportOptions`](slug:Telerik.Blazor.Components.TelerikGrid-1) to customize the export. | -| `ExportToExcelAsync` | `Task` | Returns the exported data as a `MemoryStream`. The stream itself is finalized, so that the resource does not leak. To read and work with the stream, clone its available binary data to a new `MemoryStream` instance. You can pass [`GridExcelExportOptions`](slug:Telerik.Blazor.Components.TelerikGrid-1) to customize the export. | +| `SaveAsExcelFileAsync` | `ValueTask` | Sends the exported excel file to the browser for download. You can pass [`GridExcelExportOptions`](slug:Telerik.Blazor.Components.Grid.GridExcelExportOptions) to customize the export. | +| `ExportToExcelAsync` | `Task` | Returns the exported data as a `MemoryStream`. The stream itself is finalized, so that the resource does not leak. To read and work with the stream, clone its available binary data to a new `MemoryStream` instance. You can pass [`GridExcelExportOptions`](slug:Telerik.Blazor.Components.Grid.GridExcelExportOptions) to customize the export. | + +When exporting programmatically with a `GridExcelExportOptions` argument: + +* Always set the `Columns` and `Data` properties of `GridExcelExportOptions`. +* Multi-column headers are not supported. >caption Invoke the export function from code From b8bc0c221a6e6285bc1ce09b1f3ae75c4fd9f770 Mon Sep 17 00:00:00 2001 From: Dimo Dimov <961014+dimodi@users.noreply.github.com> Date: Fri, 31 Oct 2025 13:16:47 +0200 Subject: [PATCH 2/4] Update csv.md --- components/grid/export/csv.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/grid/export/csv.md b/components/grid/export/csv.md index 704eb3a0f5..e2ce173b1e 100644 --- a/components/grid/export/csv.md +++ b/components/grid/export/csv.md @@ -124,7 +124,12 @@ You can programmatically invoke the export feature of the Grid, by using the fol | Method | Type | Description | | --- | --- | --- | | `SaveAsCsvFileAsync` | `ValueTask` | Sends the exported CSV file to the browser for download. You can pass [`GridCsvExportOptions`](slug:Telerik.Blazor.Components.TelerikGrid-1) to customize the export. | -| `ExportToCsvAsync` | `Task` | Returns the exported data as a `MemoryStream`. The stream itself is finalized, so that the resource does not leak. To read and work with the stream, clone its available binary data to a new `MemoryStream` instance. You can pass [`GridCsvExportOptions`](slug:Telerik.Blazor.Components.TelerikGrid-1) to customize the export. | +| `ExportToCsvAsync` | `Task` | Returns the exported data as a `MemoryStream`. The stream itself is finalized, so that the resource does not leak. To read and work with the stream, clone its available binary data to a new `MemoryStream` instance. You can pass [`GridCsvExportOptions`](slug:Telerik.Blazor.Components.Grid.GridCsvExportOptions) to customize the export. | + +When exporting programmatically with a `GridCsvExportOptions` argument: + +* Always set the `Columns` and `Data` properties of `GridCsvExportOptions`. +* Multi-column headers are not supported. >caption Invoke the export function from code From adeb6b2e07b170eed1684135406c89ef85ec6d78 Mon Sep 17 00:00:00 2001 From: Dimo Dimov <961014+dimodi@users.noreply.github.com> Date: Mon, 3 Nov 2025 13:48:48 +0200 Subject: [PATCH 3/4] Update components/grid/export/excel.md Co-authored-by: Iva Stefanova Koevska-Atanasova --- components/grid/export/excel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/grid/export/excel.md b/components/grid/export/excel.md index b2a4800da3..de6960c0db 100644 --- a/components/grid/export/excel.md +++ b/components/grid/export/excel.md @@ -132,7 +132,7 @@ You can programmatically invoke the export feature of the Grid, by using the fol | Method | Type | Description | | --- | --- | --- | -| `SaveAsExcelFileAsync` | `ValueTask` | Sends the exported excel file to the browser for download. You can pass [`GridExcelExportOptions`](slug:Telerik.Blazor.Components.Grid.GridExcelExportOptions) to customize the export. | +| `SaveAsExcelFileAsync` | `ValueTask` | Sends the exported Excel file to the browser for download. You can pass [`GridExcelExportOptions`](slug:Telerik.Blazor.Components.Grid.GridExcelExportOptions) to customize the export. | | `ExportToExcelAsync` | `Task` | Returns the exported data as a `MemoryStream`. The stream itself is finalized, so that the resource does not leak. To read and work with the stream, clone its available binary data to a new `MemoryStream` instance. You can pass [`GridExcelExportOptions`](slug:Telerik.Blazor.Components.Grid.GridExcelExportOptions) to customize the export. | When exporting programmatically with a `GridExcelExportOptions` argument: From 56e411a4d1671722acfbcf6379353dd1cfda5b8b Mon Sep 17 00:00:00 2001 From: Dimo Dimov <961014+dimodi@users.noreply.github.com> Date: Mon, 3 Nov 2025 13:51:17 +0200 Subject: [PATCH 4/4] Apply suggestions --- components/grid/export/csv.md | 2 +- components/grid/export/excel.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/grid/export/csv.md b/components/grid/export/csv.md index e2ce173b1e..79b25f8bd9 100644 --- a/components/grid/export/csv.md +++ b/components/grid/export/csv.md @@ -128,7 +128,7 @@ You can programmatically invoke the export feature of the Grid, by using the fol When exporting programmatically with a `GridCsvExportOptions` argument: -* Always set the `Columns` and `Data` properties of `GridCsvExportOptions`. +* The `Columns` and `Data` properties of `GridCsvExportOptions` are required. * Multi-column headers are not supported. >caption Invoke the export function from code diff --git a/components/grid/export/excel.md b/components/grid/export/excel.md index de6960c0db..cce558d3c0 100644 --- a/components/grid/export/excel.md +++ b/components/grid/export/excel.md @@ -137,7 +137,7 @@ You can programmatically invoke the export feature of the Grid, by using the fol When exporting programmatically with a `GridExcelExportOptions` argument: -* Always set the `Columns` and `Data` properties of `GridExcelExportOptions`. +* The `Columns` and `Data` properties of `GridExcelExportOptions` are required. * Multi-column headers are not supported. >caption Invoke the export function from code