From 55b4924b877b468830b7f35fd71596c89c588f7e Mon Sep 17 00:00:00 2001 From: Arman Boyakhchyan Date: Tue, 30 Dec 2025 14:28:32 +0400 Subject: [PATCH 1/2] DataGrid Excel Export: Add Async customizeCell Info --- .../ExcelExportDataGridProps/customizeCell.md | 64 +++++++++++++++---- 1 file changed, 51 insertions(+), 13 deletions(-) diff --git a/api-reference/50 Common/Object Structures/ExcelExportDataGridProps/customizeCell.md b/api-reference/50 Common/Object Structures/ExcelExportDataGridProps/customizeCell.md index e7f297ed64..b604e76687 100644 --- a/api-reference/50 Common/Object Structures/ExcelExportDataGridProps/customizeCell.md +++ b/api-reference/50 Common/Object Structures/ExcelExportDataGridProps/customizeCell.md @@ -4,28 +4,30 @@ type: function(options) --- --- ##### shortDescription -Customizes an Excel cell after creation. +Customizes Excel cells after creation. ##### param(options): Object -An object passed to this callback function. +**customizeCell** options. ##### field(options.excelCell): Object -An DevExtreme ExcelJS object that describes an Excel cell. Use the object's properties to customize the cell. For information on these properties, refer to the following DevExtreme ExcelJS documentation sections: - -- value -- alignment -- border -- fill -- richText -- font -- numFmt +An Excel cell. ##### field(options.gridCell): ExcelDataGridCell A DataGrid cell. --- -The following code illustrates how to customize font and alignment in cells whose [rowType](/api-reference/10%20UI%20Components/dxDataGrid/6%20Row/rowType.md '/Documentation/ApiReference/UI_Components/dxDataGrid/Row/#rowType') equals *"data"*: +DevExtreme ExcelJS allows you to customize the following Excel cell properties: + +- [value](https://github.com/DevExpress/devextreme-exceljs-fork#value-types) +- [alignment](https://github.com/DevExpress/devextreme-exceljs-fork#alignment) +- [border](https://github.com/DevExpress/devextreme-exceljs-fork#borders) +- [fill](https://github.com/DevExpress/devextreme-exceljs-fork#fills) +- [richText](https://github.com/DevExpress/devextreme-exceljs-fork#rich-text) +- [font](https://github.com/DevExpress/devextreme-exceljs-fork#fonts) +- [numFmt](https://github.com/DevExpress/devextreme-exceljs-fork#number-formats) + +The following code snippet checks DataGrid cell [rowType](/Documentation/ApiReference/UI_Components/dxDataGrid/Row/#rowType) values to customize Excel cells in data rows: --- ##### jQuery @@ -234,7 +236,43 @@ The following code illustrates how to customize Date: Mon, 5 Jan 2026 08:32:42 +0400 Subject: [PATCH 2/2] Update following feedback --- .../Object Structures/ExcelExportDataGridProps/customizeCell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-reference/50 Common/Object Structures/ExcelExportDataGridProps/customizeCell.md b/api-reference/50 Common/Object Structures/ExcelExportDataGridProps/customizeCell.md index b604e76687..9ae324eb17 100644 --- a/api-reference/50 Common/Object Structures/ExcelExportDataGridProps/customizeCell.md +++ b/api-reference/50 Common/Object Structures/ExcelExportDataGridProps/customizeCell.md @@ -240,7 +240,7 @@ The following code snippet checks DataGrid cell [rowType](/Documentation/ApiRefe [note] -To integrate asynchronous operations within **customizeCell**, follow these steps: +To add asynchronous operations to **customizeCell**, follow these steps: 1. Define a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) array in the [onExporting](/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#onExporting) handler. 2. In **customizeCell**, add your asynchronous operations to the **Promise** array.