I am using standard grid export function to export grid data into excel. The export is working correctly but the only issue I am facing is the alignment of numeric column's headers(float, int datatypes). They are aligning to right and I want them to be left aligned. I tried to use halign: "left" property which shows column header left aligned on grid but in the export file column header appears right aligned. I am using FlieSaver.js file to save blob into excel.
Please let me know any work around.
below code is used to export grid into excel file.
function ExportGridView() {
blob = gridobj.exportData({
format: 'xlsx',
nopqdata: true,
render: true,
});
if (typeof blob === "string") {
blob = new Blob([blob]);
}
saveAs(blob, "filenametest.xlsx'); //call to FileSaver.js file
}