ag-gridag-grid-column

How to hide column in AG-Grid?


How to hide the column in AG-Grid and also it should not be displayed in Tool Panel...

var columnDefs = [{ headerName: "Stone_ID", field: "Stone_ID", width: 100, hide: "true" }]

Solution

  • You can set the column property of suppressToolPanel to true to achieve that.

    var columnDefs = [
        {
           headerName: "Stone_ID",
           field: "Stone_ID",
           width: 100,
           hide: true,
           suppressToolPanel: true
        }
    ]