On a Material-Table, the columns
have a property type
which can be
Data type: 'boolean', 'numeric', 'date', 'datetime', 'time', 'currency'
I tried numeric
but it didn't format large numbers with commas. For example, instead of "412335" I need to format it as "412,335". The currency
type does add commas.
I know I can define a custom cell, but I'd like to avoid customizations because they're a maintenance problem.
I've also seen Custom Column Rendering as a possible solution, but my cells are supposed to be editable so when the user edits the cell, I'd prefer the commas to go away. I'm looking for a solution that operates at the display level. I mean, when it displays the value "412335" it should display it with commas as "412,335" but it should not affect the underlying value.
Lastly, I'd like a solution which takes localization into account because some of our users might be in countries that don't use commas as a thousands separator.