How to change number of defaults rows displayed in datatable populated by API

I've setup a DataTable that fetches its data via a backend API page load action (for a web layout). However, it, by default, only appears to show 10 rows at a time (and this, in turn, manages the pagination options on the bottom of the page). I'd like to change the default of 10 to 20. You can't hard-code a value in that field, so I tried to set via the responsive settings option, but those settings seem to be ignored.

And the number of "Rows per page" pulldown that appears on the bottom of the table only allows for 5 or 10. Can that be changed to 20, for instance?

I also tried creating a constant for "Number of Rows (optional)", and it works as as long as the value is 10 or less. The more I experiment, I think that is just used to control the total # of rows that will be rendered in the DataTable.

I guess what I need is to set the default pagination size, which now only appears to be 5 or 10.

7
4 replies