How to right align text in ag-grid for number

Discussão em 'Angular' iniciado por Ekta, Agosto 30, 2025.

  1. Ekta

    Ekta Guest

    If any cell in ag-grid has numeric value like decimal, int or numeric i want that cell to be right aligned.

    this.defaultColumnDefs = {
    width: 75,
    exportColumn: true,
    type: 'numericColumn',
    cellClass(params) {
    return params.colDef.type === 'numericColumn' ? 'ag-numeric-cell' : '';
    },
    filterParams: {
    buttons: ['clear'],
    },
    menuTabs: ['filterMenuTab'],
    filter: 'agTextColumnFilter',
    resizable: true,
    sortable: true
    };


    It used to work before now i have to go to each column and specify the type. Why doesn't it take the default type?

    Continue reading...

Compartilhe esta Página