Hi Alex,
Thanks for contacting Syncfusion support.
Based on your requirement, you want to move the Grid to first page when perform filtering, Sorting, etc., on other pages. We would like to share the default behavior of EJ2 Grid with you.
When you perform any grid actions like Filtering, Searching, Sorting, Grouping, etc., we send the current page query to the server and maintain the current page in the Grid. This is default architecture of EJ2 Grid.
If you want to move the Grid to first page, you have to change the currentPage property as 1 in the actionComplete event of Grid and Its sends second api request to the server. We can’t achieve this in single api request. This is the behavior of Grid.
actionComplete: function (args) {
if ((args.requestType === "sorting" || args.requestType === "filtering") && grid.pageSettings.currentPage !== 1) {
grid.pageSettings.currentPage = 1;
}
}
|
Please get back to us if you need further assistance with this.
Regards,
Rajapandiyan S