Questions tagged [ag-grid-ng2]

ag-grid-ng2 is now deprecated. Please use ag-grid-angular going forward. ag-grid-ng2 was used as a project that contains the Angular components for use with ag-Grid.

216 questions
8
votes
3 answers

AG-Grid skip column on export to CSV

I have a column in a table which has only buttons in it. The button is a download button. I dont what this column to be exported when i click on export to csv. Can this be done?
rkiyer
  • 91
  • 1
  • 2
  • 3
8
votes
2 answers

Ag-Grid has zero height in a flexbox layout

My goal is to use ag-grid in an Angular 5 project and have the grid take up all of the available vertical space in a flexbox layout. The grid seems happy to use "height:100%" when it's contained in a div which has a defined pixel height or when the…
Chris Farmer
  • 24,974
  • 34
  • 121
  • 164
7
votes
3 answers

How to launch a method after a cell value has been edited in ag-grid?

I have this simple column: Here's its definition: { headerName: "Activité", field: "activite", editable: true, , cellClass: "cell-wrap-text" } Here's the method I want to launch every time the user enters a…
Ahmed Ghrib
  • 695
  • 4
  • 13
  • 29
7
votes
4 answers

Scoping issues while using context menu

I'm following the docs here to add a context menu item to my grid. The issue is that from the scope of getContextMenuItems (in the example), I'm unable to access any other methods or variables in my component. Is this possible? Example…
jwong
  • 73
  • 1
  • 5
6
votes
4 answers

ag-Grid header styles not changing with CSS on component

I'm using ag-Grid on my application and I have it ruining fine with the default theme (ag-theme-balham). On one specific component I want to change the header background color, but when I add the CSS on my component.scss file nothing happens. I…
Ennio
  • 1,147
  • 2
  • 17
  • 34
6
votes
0 answers

How to perform cell validation in #ag-grid for Angular 4

I have started using ag-grid in my Angular 4 project, and was unable to find any API's for performing in-line cell validations i.e. whenever user edits a particular cell, the requirement is to perform a required field and pattern validation. In case…
Vikram Singh
  • 77
  • 1
  • 11
6
votes
6 answers

Switch between editable and non editable mode in ag-grid

I am using ag-grid to display and modify data.How Can I switch between editable and non editable for the hole ag-grid. Can I do this with the grid api. this is my default config: this.defaultDefs = { suppressMovable: true, …
Mohamed Amine Ouali
  • 575
  • 1
  • 8
  • 23
6
votes
1 answer

ag grid pagination not working, initially making server call twice

Clicking on search button on the page will return result from server call and should display that in the ag grid. Each click pagination details are seinding server will return only that much records to client. Implemented ag grid but grid is not…
Rosh
  • 1,676
  • 4
  • 21
  • 35
5
votes
3 answers

Server-side filtering with Angular 6 ag-grid and ASP.NET and EF Core 2.1

I am trying to implement server-side filtering in ag-grid (infinite scrolling mode). Problem is - documentation about filterModel is very obscure and I am slowly discovering things using console.log which is getting frustrating because of different…
mariob
  • 593
  • 1
  • 6
  • 15
5
votes
3 answers

Custom pagesize in ag-grid

I am using ag-grid for table in my Angular 6 application. Below is my gridOptions configuration for ag-grid. gridOptions: GridOptions = { rowBuffer: 0, rowSelection: "multiple", rowModelType: "infinite", cacheOverflowSize: 2, …
Renil Babu
  • 2,118
  • 1
  • 20
  • 29
5
votes
1 answer

How to make all cells in ag grid editable on click of a button

I am able to make all configured editable columns as editable but on focus, other cells change to view mode. access the below link and click on start editing, all cells will change to edit mode. then start editing(typing) in a cell. now other…
5
votes
0 answers

How to open the filter menu from a custom floating filter component in ag-grid?

I want to open the little menu with filter options from a custom floating filter component in Angular 2+. Like in the official documentation it should be posible to have a floating input field with an icon next to it. I managed to crate a custom…
JohnDizzle
  • 1,268
  • 3
  • 24
  • 51
5
votes
3 answers

How can I merge cells of Ag-grid?

I am using Ag-grid and I need merge particular cells in a row. How can I do this?
Venkatesh V
  • 51
  • 1
  • 1
  • 2
4
votes
3 answers

ag-grid and angular, how to switch grid options dynamically

I have two different grid configurations (represented as two gridOption objects). One is loading local data, where the other one is using an elasticsearch datasource with the infinite row model. If I wire them in the template…
Tom
  • 3,807
  • 4
  • 33
  • 58
4
votes
2 answers

Ag-grid Row selection

While selecting the rows of an ag-grid with the help of cell selection using : this.gridOptions.rowMultiSelectWithClick = true ; Is it possible to access the last selected row only for computation and keep the previously selected rows state intact.
nikom
  • 71
  • 1
  • 1
  • 10
1
2
3
14 15