See attached demo.
The following error is thrown when exporting to Excel:
excel-export.js?a198:757 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'toLowerCase')
at ExcelExport.aggregateStyle (excel-export.js?a198:757)
at ExcelExport.fillAggregates (excel-export.js?a198:700)
at ExcelExport.processAggregates (excel-export.js?a198:626)
at ExcelExport.processGroupedRows (excel-export.js?a198:470)
at ExcelExport.processRecordContent (excel-export.js?a198:369)
at ExcelExport.processGridExport (excel-export.js?a198:355)
at eval (excel-export.js?a198:235)
at new Promise (<anonymous>)
at ExcelExport.processInnerRecords (excel-export.js?a198:233)
at eval (excel-export.js?a198:160)
|
[App.vue]
export default {
name: "Grid",
data() {
return {
height: 200,
rows: [
{
name: "John Doe",
location: "London",
itemsCount: 5,
price: 10
},
{
name: "Jane Smith",
location: "Paris",
itemsCount: 3,
price: 6
}
],
}
},
computed: {
columns() {
return [
{
field: "name",
headerText: "Name"
},
{
field: "location",
headerText: "Location",
visible: false
},
{
field: "itemsCount",
headerText: "Items",
type: 'number'
},
{
field: "price",
headerText: "Price",
type: 'number'
},
]
},
}
}
|
Thank you Rajapandiyan for the reply and investigation.
I verified changing the 'items' column key resolves the error.
Interestingly, using the following patch to catch the error, bypasses it. The excel exports fine.
Thank you Rajapandiyan.