Search code examples
angularjsangular-ui-grid

ui-grid hide grid menu item (not all only export button)


I am using angular ui-grid and using external button to export as a csv file.

The final grid menu is similar to as attached.

From this, i need to remove the export as buttons. But the columns should be there in the grid menu.

How can i achieve this?enter image description here


Solution

  • There are gridOptions to hide the exportbuttons.

    exporterMenuCsv: false,
    exporterMenuPdf: false,
    

    I created a Plunkr.