Hi Nagendra,
Greetings from Syncfusion support
Based on your query we could see that you like to remove the
commas from the string, based on your query we have prepared a sample and achieved
your requirement by using regex function of the JavaScript. Please refer the
below code example and sample for more information.
|
exportQueryCellInfo(args: ExcelQueryCellInfoEventArgs): void { //excelQueryCellInfo event of Grid
if(args.column.field === 'FormatNuber') {
args.value = (args.value
as any).replace(/,/g, ''); //using
regex
}
}
|
Sample: https://stackblitz.com/edit/angular-gz8mxm?file=app.component.ts,app.component.html,data.ts
You can use the custom helper function with the caption
template and footer template and return the string using the same regex to
remove the commas to achieve your requirement. Please refer the below KB for
more information.
KB: https://www.syncfusion.com/kb/11253/how-to-apply-formatting-for-the-group-caption-template
Regards,
Rajapandi R