[BUG] Template data validation lost
See original GitHub issue🐛 Bug Report
I have a template Excel file which includes data validations. When I use exceljs to write data to the template the data validations are lost.
Lib version: 3.8.2
Steps To Reproduce
// index.js
const Excel = require("exceljs");
(async () => {
const workbook = new Excel.Workbook();
await workbook.xlsx.readFile("./template.xlsx"); // Has data validation
await workbook.xlsx.writeFile("./output.xlsx"); // Data validation lost
})();
See attached sample project: exceljs-bug.zip
The expected behaviour:
Data validation is retained.
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (7 by maintainers)
Top Results From Across the Web
Excel Data Validation Tips and Troubleshooting - Contextures
This page has data validation tips, and shows how to fix Excel data validation problems, such as drop down not working, blank selected,...
Read more >Excel - Data Validation Bug? - Microsoft Community
I seem to have established some unusual behaviour when using dynamic when creatign a dynamic data validation/drop-down list.
Read more >Drop down list missing in Excel- which was your problem?
00:00 Drop down options not working00:20 The list has been deleted00:40 Drop down list shows all blanks01:13 Avoid drop down list being at ......
Read more >DATA VALIDATION ANNOYANCES - Excel Annoyances [Book]
RESTRICT DATA ENTRY WITH VALIDATION RULES · CREATE A FORM TO EASE DATA ENTRY · BASE VALIDATION RULES ON FORMULA RESULTS · USE...
Read more >Data validation in Excel: how to add, use and remove - Ablebits
In addition to the input message, you can show one of the following error alerts when invalid data is entered in a cell....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So todo list:
Worksheet.dataValidations
https://github.com/exceljs/exceljs/blob/master/index.d.ts#L955dataValidation
getter and setter forColumn
dataValidation
getter and setter forRow
Range
Hi,
Any news about this issue?