Could you try modifying the code as shown below and let me know if page size all option is retained?
.Pageable(p => p
Also remove PageSize(2) from DataSource configuration.
Telerik by Progress
Check out the new UI for ASP.NET Core
, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.