how to give a default value to ag-grid filter

Discussão em 'Angular' iniciado por abhishek vashistha, Abril 23, 2025.

  1. Trying to display a default value in ag-grid filter text . In filter param I want to give a default value to be displayed to user not only to be applied on the result

    this.columnDefs = [
    {
    headerName: this.pageData["tbm.line.list.grid.phonenumber"],
    field: 'tn',
    /*sort: "asc",*/
    sortable: true,
    filter: "agTextColumnFilter",
    filterParams: { filterOptions: ['contains'], apply: true },
    //tooltip: (params) => 'Address: ' + params.value,
    headerTooltip: 'Phone Number',
    // editable: true,
    // checkboxSelection: true,
    // headerCheckboxSelection: true,
    // headerCheckboxSelectionFilteredOnly: true,
    width: 150
    },

    Continue reading...

Compartilhe esta Página