Format numbers fix
This commit is contained in:
@@ -32,6 +32,9 @@ public partial class Details : ComponentBase, IDisposable
|
||||
[Inject]
|
||||
private DateTimeHelper DateTimeHelper { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
private NumberFormatHelper NumberFormatHelper { get; set; } = null!;
|
||||
|
||||
private LayerDto? layer;
|
||||
private List<RecordDto> records = new();
|
||||
private List<string> displayedColumns = new();
|
||||
@@ -191,7 +194,7 @@ public partial class Details : ComponentBase, IDisposable
|
||||
}
|
||||
|
||||
var value = GetRecordValueByName(record, columnName);
|
||||
return value.HasValue ? value.Value.ToString("N2") : string.Empty;
|
||||
return NumberFormatHelper.FormatNumber(value);
|
||||
}
|
||||
|
||||
private double? GetRecordValueByName(RecordDto record, string columnName)
|
||||
|
||||
Reference in New Issue
Block a user