Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AG-Grid: How to remove the Column Menu

I would like to remove the column menu. I can simply display: none it, but it seems a waste to process and render it in the first place. I can only find options on how to edit items inside the menu in the docs. Thanks

like image 983
Dominic Avatar asked Jan 24 '18 15:01

Dominic


People also ask

How do I disable column drag in ag-Grid?

To turn OFF column animations, set the grid property suppressColumnMoveAnimation=true . The move column animation transitions the column's position only, so when you move a column, it animates to the new position.

How do I hide the header name on ag-Grid?

Set the header height to zero.

How do you hide the floating filter on ag-Grid?

To have floating filters on for all columns by default, you should set floatingFilter on the defaultColDef . You can then disable floating filters on a per-column basis by setting floatingFilter = false on an individual colDef .

How do you maintain column order in ag-Grid?

In order for the Column Order to be maintained, the grid needs to match the Columns. This can be done by ensuring each Column has a field or colId defined. Any Columns that can't be matched will be treated as new Columns and placed at the end.


1 Answers

Either setting menuTabs: [] or suppressMenu: true in the columnDefs. In this plunker the silver column demonstrates the first, while the bronze column demonstrates the second

like image 162
Jarod Moser Avatar answered Sep 23 '22 02:09

Jarod Moser