How to enable client side sorting when using dynamic loading

We are using dynamic loading for some of the grids in our application. These grids has almost 1000 records to render. After the grid rendered the first few records, I observed that the client side sorting is not enabled/not working when I want to sort these few records which were displayed on the grid. The client side sorting is not working until all the 1000 records are rendered on the grid. How to enable the client side sorting when partial records are rendered on the grid?

Same is the case happening with the filters. The client side filtering is not working until all the 1000 records are rendered on the grid. How to enable the client side filtering when partial records are rendered on the grid?

Unfortunately it’s not available to use the client-side sorting or filtering in case of dynamic loading of your data.