Catch last query executed by DataManager

Hi,

Let me first briefly try to explain what I'm trying to do:
I have a paginated grid showing my data which the client can filter using the grid filters. 
I would like to be able to press a button and send the full filtered data of the grid to another component for reporting purposes.
This means that if I have e.g. 100 records in my table, but have filtered out 60 records, I would have 4 pages of 15 records.
When pressing the button, I would like to be able to get the data of the 60 records.

For this, I am trying to "catch" the last query executed by the DataManager (ODataV4Adaptor) on the client. I was hoping to call the same query after removing the $top and $skip parameters. I tried to inherit from the ODataV4Adaptor, but found a thread on the forum that this is not possible. As I am using as much standard OData as possible, I prefer not to write the ODataV4Adaptor from scratch to be able to do this.

Could you please give me a pointer as to where to start looking to be able to "catch" or intercept the call from client side?
Thanks!

Best regards,

Mike

3 Replies 1 reply marked as answer

JP Jeevakanth Palaniappan Syncfusion Team August 31, 2020 01:29 PM UTC

Hi Michael, 

Greeting from Syncfusion support. 

We have validated your query and found that you need to send the filtered data to another component. For this we suggest you to use the GetFilteredRecords method of grid to get the filtered records. Please find the below API link for your reference. 


Please get back to us if you need further assistance. 

Regards, 
Jeevakanth SP. 


Marked as answer

MI Michael September 2, 2020 07:34 AM UTC

Thanks!

This is exactly what I needed.

Best regards,
Mike


JP Jeevakanth Palaniappan Syncfusion Team September 3, 2020 04:21 AM UTC

Hi Michael, 

We are glad to know that your issue has been resolved. Please get back to us if you need further assistance. 

Regards, 
Jeevakanth SP. 


Loader.
Up arrow icon