How to hide column in AG-Grid?

nkota picture nkota · Jun 22, 2016 · Viewed 34.2k times · Source

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" }]

Answer

Ishwor Timilsina picture Ishwor Timilsina · Feb 20, 2018

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
    }
]