Issue with grid pagination with combo box

Issue with grid pagination with combo box

We are trying pagination of data grid with combo box. On selection of combo, data in grid would be changed. The issue we are facing is with pagination. When initially page loads, it displays all the records and correct pagination but when we change the category in combo, the grid data gets changed but the pagination doesn't update and it still shows the all data count. I have attached the screenshots for reference. Please let me know how can this be solved?