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.
Questions tagged [ag-grid-ng2]
216 questions
3
votes
1 answer
How to drag and drop a file unto a row with ag-grid?
I am working on a prototype of how we might use ag-grid to enhance one of our applications. I would like to drag and drop a file from my desktop unto a particular row of the ag-grid. The use case is adding an attachment to a particular project…

pgreen2
- 3,601
- 3
- 32
- 59
3
votes
2 answers
ag-grid with simple type row data
I am having a hard time setting up an ag-grid table in an Angular 6.0 application where the row data model is a an array of simple types (dates, numbers, strings, etc.)
The only way I can do so is to wrap the all the data into an object list (each…

jpadre
- 31
- 4
3
votes
0 answers
Issue in loading dynamic module with Ag-grid in Angular
we are one of the consumers of Ag-Grid Enterprise and we have written a wrapper grid around ag-grid to add custom features, logic and reusability as per our company specifications and released as a node module.
One of our main requirement, that we…

vprasad2108
- 41
- 3
3
votes
1 answer
AgGrid custom date filter
AgGrid date filter is in the form of mm/dd/yyyy, but I want to change it to yyyy/mm/dd how can I do that?
The date filter is part of the grid's columnDefinition where I use filter: 'agDateColumnFilter'

matchifang
- 5,190
- 12
- 47
- 76
3
votes
2 answers
How to hide column in Ag Grid?
I am fetching data from a database and filling it by adding a manual action button column into Ag-Grid. Now, the first columns consist of those action buttons and 2nd column contains _id I want to hide that second column but in ag-grid documentation…

Nikul Vyas
- 363
- 3
- 7
- 30
3
votes
1 answer
How to import ag-grid themes in angular 6
How can I import ag-grid theme in angular 6 project?
I've upgraded the project from angular 4 to angular 6. I had been importing the ag-grid theme using angular.cli.json file. Apparently angular 6 doesn't support that. Please help.

RV.
- 2,781
- 3
- 29
- 46
3
votes
0 answers
While using ag-grid dataSurce, how can I know if the getRows function being called due to scrolling or filtering
As we know, in infinite rowModelType, we have to set dataSource for the ag-grid.
const dataSource = {
rowCount: count
getRows: (params: IGetRowsParams) => this.getRows(params, [])
};
this.gridApi.setDatasource(dataSource);
Now,…

Paritosh
- 11,144
- 5
- 56
- 74
3
votes
1 answer
Angular ag-grid cell renderer checkbox not refresh value
I created cell renderer for checkbox input but when I click checkbox it change the value inside but not on the cell.
See plunker example: Plunker
refresh method should be called on change but somehow it is not.
onCellClicked function returns…

TadeM
- 81
- 1
- 8
3
votes
1 answer
Using ng-template as cellRenderer in ag-grid / Angular 5
It would seem that whenever you want to customize the output of the cell by something more than just text transformation, you need a cellRenderer. But it requires a whole new component to fulfill that goal. That approach is, in general, fine, but…

rattkin
- 637
- 8
- 25
3
votes
0 answers
Exporting an Angular module which imports agGridModule
I am trying to write a component library in Angular5. My library has a rich set of features/components. I am trying to use AgGrid Module in my component library.
I understand AgGrid Module needs to be aware of entryComponents at compile-time if i…

Divyanshu Mittal
- 31
- 2
3
votes
3 answers
Angular ag-grid resize issue
I want to enable column resizing but in the same time I want to avoid the case when the user resize any column to the left side of the grid and doing this a blank space appers on the right of the last column.
I attached a picture below to explain…

Catalin
- 752
- 1
- 16
- 32
3
votes
3 answers
ag-grid loses focus after refresh
I'm using ag-grid in Angular 4.x.
Whenever the grid is refreshed it loses focus.
This seems to be a bug in ag-grid.
Is there any workaround, like setting the focus back to the grid, so that keyboard navigation still functions?
Cheers,
Seeschorle

Seeschorle
- 376
- 1
- 4
- 18
3
votes
2 answers
how to hide column in export
How to hide the select all(checkbox) column in excel or csv export.
{
checkboxSelection: true,
suppressMenu: true,
suppressSorting: true,
suppressFilter: true,
width: 30,
pinned: true,
suppressExcelExport :true,
…

Satendra Jindal
- 1,048
- 3
- 10
- 15
3
votes
2 answers
Cannot change overlayNoRowsTemplate after grid loaded
There are two different situations where there are no rows to display. And I want to change the template each time depending on the situation.
I am updating the overlayNoRowsTemplate but the template cannot replaced after the grid has been…

user3292624
- 180
- 2
- 10
3
votes
3 answers
ag-grid load a table with a row selected
I am refreshing the grid every second or so. Once a row is selected, I want to keep the same row selected on the next refresh. Is there a way to load the table with a row selected to maintain a stable selection (so that the user will feel that the…

techguy2000
- 4,861
- 6
- 32
- 48