Sunday, May 26, 2019

AG Grid - Best way to access to the GridApi



Which is the cleanest way to access to the GridApi of the AG Grid:



Option1




import { AgGridNg2 } from 'ag-grid-angular';

@ViewChild('agGrid') agGrid: AgGridNg2;


Option2



Event onGridReady

Answer




The best way is to use onGridReady function and use params.api to assign by your property


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...