As a user it is more convenient if I can adjust the page size for pagination of the grid myself, to adapt to my current needs and screen sizes.
The allowed options could then be configured in the data grid 2 widget, and an additional dropdown widget would be placed in the grid to control the pagination behaviour.
e.g. like here in AG Grid