Skip to content

Commit 2b3dac0

Browse files
ntachevadimodi
andauthored
docs(grid):Updated OnBeforeCSVExport docs (#1059)
* docs(grid):Updated OnBeforeCSVExport docs * Update components/grid/export/events.md Co-authored-by: Dimo Dimov <[email protected]> Co-authored-by: Dimo Dimov <[email protected]>
1 parent 1d60d2d commit 2b3dac0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/grid/export/events.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ To export a hidden (the Visible attribute set to `false`) column you can manuall
141141

142142
* `Data` - `IEnumerable<object>` - assign a custom collection of data to be exported to CSV, for example only the selected items in the Grid.
143143

144-
* `Columns` - `List<ExcelExportableColumns` - a collection of all exportable columns in the Grid (the columns that have a defined `Field` and are visible). You can customize the following attributes of the Grid column before exporting it into Excel:
144+
* `Columns` - `List<ExcelExportableColumns>` - a collection of all exportable columns in the Grid (the columns that have a defined `Field` and are visible). You can customize the following attributes of the Grid column before exporting it into Excel:
145145

146-
* `Width` - define the width of the column **in pixels**.
147-
* `Title` - define the column title to be shown in the Excel file header.
148-
* `NumberFormat` - provide an Excel-compatible number/date format
146+
* `Title` - define the column title to be shown in the Excel file header.
149147
* `Field` - set the data bound field of the column.
150148

149+
>important The `Width` and `NumberFormat` properties are not applicable to CSV export and will be removed in **UI for Blazor 4.0**. For CSV formatting see [Format numbers and dates in the exported CSV file from the Grid]({%slug grid-kb-number-formatting-of-the-csv-export%}).
150+
151151
To export a hidden (the Visible attribute set to `false`) column you can manually define an instance of the `ExcelExportableColumn` in the handler for the `OnBeforeExport` event and add that column to the `args.Columns` collection.
152152

153153
* `isCancelled` - `bool` - you can cancel the OnBeforeExcel event by setting the `isCancelled` field to `true`.
@@ -400,3 +400,4 @@ The `OnAfterExport` event fires after the [OnBeforeExport](#onbeforeexport) even
400400
* [Grid Excel Export]({%slug grid-export-excel%})
401401
* [Grid CSV Export]({%slug grid-export-csv%})
402402
* [Custom cell formatting of the exported file with RadSpreadProcessing]({%slug grid-kb-custom-cell-formatting-with-radspreadprocessing%})
403+
* [Format numbers and dates in the exported CSV file from the Grid]({%slug grid-kb-number-formatting-of-the-csv-export%})

0 commit comments

Comments
 (0)