You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/grid/export/events.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -141,13 +141,13 @@ To export a hidden (the Visible attribute set to `false`) column you can manuall
141
141
142
142
*`Data` - `IEnumerable<object>` - assign a custom collection of data to be exported to CSV, for example only the selected items in the Grid.
143
143
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:
145
145
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.
149
147
*`Field` - set the data bound field of the column.
150
148
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
+
151
151
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.
152
152
153
153
*`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
400
400
*[Grid Excel Export]({%slug grid-export-excel%})
401
401
*[Grid CSV Export]({%slug grid-export-csv%})
402
402
*[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