Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion projects/igniteui-angular/grids/core/src/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ export class GridBaseAPIService<T extends GridType> implements GridServiceType {
}

public should_apply_number_style(column: ColumnType): boolean {
return column.dataType === GridColumnDataType.Number;
return column.dataType === GridColumnDataType.Number
|| column.dataType === GridColumnDataType.Currency
|| column.dataType === GridColumnDataType.Percent;
}

public get_data(): any[] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ export class IgxGridHeaderComponent implements DoCheck, OnDestroy {

@HostBinding('class.igx-grid-th--number')
public get numberStyle() {
return this.column.dataType === GridColumnDataType.Number;
return this.column.dataType === GridColumnDataType.Number
|| this.column.dataType === GridColumnDataType.Currency
|| this.column.dataType === GridColumnDataType.Percent;
}

@HostBinding('class.igx-grid-th--sortable')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export class IgxTreeGridAPIService extends GridBaseAPIService<GridType> {
}

public override should_apply_number_style(column: ColumnType): boolean {
return column.dataType === GridColumnDataType.Number && column.visibleIndex !== 0;
return (column.dataType === GridColumnDataType.Number
|| column.dataType === GridColumnDataType.Currency
|| column.dataType === GridColumnDataType.Percent) && column.visibleIndex !== 0;
}

public override deleteRowById(rowID: any): any {
Expand Down
Loading