Home  >  Q&A  >  body text

Is there a React Ag Grid event that fires when data loading is complete?

So I noticed that in my ag-grid, the data seemed to be loading out of order - so some of the functions I ran couldn't use params.rowdata because it was empty. Is there any built-in event in ag-grid that will fire after all data is loaded?

P粉394812277P粉394812277233 days ago495

reply all(1)I'll reply

  • P粉670838735

    P粉6708387352024-03-22 14:01:13

    I think you can use firstDataRendered grid events

    const onFirstDataRendered = (params) => console.log({ params });
    
    ...
    
    ...
    

    http://www.ag-grid.com/react-datagrid/grid-events/

    reply
    0
  • Cancelreply