I am having trouble formatting summaries to match the numeric formatting that I have defined for a numeric column.
I have a grid (shown above) with a column "Hours", with a dataType of number,
[dataType]="number"
and it has pipeArgs to show 1 decimal place
[pipeArgs]="pipeArgs1"
where
pipeArgs1: IFieldPipeArgs = { digitsInfo: "1.1-1" }
Hello,
Thank you for reaching out regarding the numeric formatting of summaries in your grid.
I have been looking into your question and based on your request, it appears you want the summaries in your "Hours" column to match the numeric formatting defined for the cells, specifically displaying one decimal place. The good news is that if you have formatted the cells, you do not need to use the summaryFormatter property or create a special formatter for the summaries. The summaries will automatically inherit the cell formatting.
To illustrate this, I have prepared a sample that demonstrates how the summaries will automatically be formatted to match the cells when the cells are formatted.
Here is the sample for your reference: StackBlitz Sample.
In this sample, the "Price" column is formatted to display one decimal place using pipeArgs1, and the summaries are displayed with the same formatting without the need for a summaryFormatter.
The described scenario could be observed here:
If you continue to experience the same describe behavior or have any further questions, please do not hesitate to reach out.
Regards,
Georgi Anastasov
Entry Level Software Developer
Infragistics