exclusive-coralE
Refine3y ago
4 replies
exclusive-coral

Dynamically filling the Rowcount property in the DataGridProps.

Hi,

I am following the blog_posts example that shows data using the DataGrid on a selection of (external) filters with an API. I am trying to fill the RowCount dynamically based on the results returned in the filters. I have noticed that this could be set in the DataGridProps, but I am not entirely sure how to pass the row count from the API to the existing DataProvider, as the dataprovider only seems to accept an array of data points as rows for the grid.

I would expect the solution would be to add a total Rowcount to the results API, but I am not able to parse it somewhere automagically and use it in my front-end.
Hope you guys can shed some light on my situation and looking forward to a reponse!
Was this page helpful?