I have a use case where I do calculations using row data and display them in a separate ag grid. I let the user define what they want to calculate and store the definition. I let them filter ag grid data that the stored calculation is to be applied to. I store the filtermodel to be applied to their stored calculation definition. How can I apply the stored filtermodel to the row data in an ag grid so that I can do the calculation? I do not want the row data in the ag grid to change other than temporarily to do the calculation. I let the user store several options for the row data that they want to apply the calculation to 1. all row data 2. the live filtered data 3. the live selected data 4. the saved filter applied to the row data. I have them all working except for the last one.
Hello @Brent,
You should be able to pass the filterModel
back to the grid from a callback.
Yes, I know I can do that. I may have several of these and I do not want to change the rows in the grid either. I was hoping there might be a function or something I could pass in the row data and a filter model and get the filtered rows back.
As in an api call for it?
I dont think there is something like that. However, you could have a hidden AG Grid which you could pass these things to and get back the virtualRowData
.
Yes, an api call. The hidden AG Grid might work. Thanks.
1 Like
I got it working with the hidden AG Grid. Thanks
1 Like