Hi Carlos,
Thank you for the provided stack trace.
The main reason for this faulty behavior is in the logic that parses the cells. For the cells with HTML elements(headers and footers), getting the content returns a regular string. The problem occurs when the script tries to get the text from a regular cell. By doing this, the "text()" function failed when trying to parse a special symbol like a dot.
A good approach for resolving the issue is conditionally checking the current row type, before parsing its cells. For the implementation needs, it will be enough to check if the row type is "group-header" or "footer". Here is an example of the updated "excelExport" event handler:
excelExport:function(e){
var rows = e.workbook.sheets[0].rows;
for (var ri = 0; ri < rows.length; ri++) {
var row = rows[ri];
if (row.type == "group-header" || row.type == "footer") {
for (var ci = 0; ci < row.cells.length; ci++) {
var cell = row.cells[ci];
if (cell.value && ($(cell.value).text() != "")) {
cell.value = $(cell.value).text();
}
}
}
}
}
Find the complete implementation in the following dojo:
Will be glad to assist you further if anything else is needed.
Best Regards,
Anton Mironov
Progress Telerik