# Strato DataTable.Pagination is there a way to change the values available in the drop down for "row per page"

**URL:** <https://community.dynatrace.com/t/strato-datatable-pagination-is-there-a-way-to-change-the-values-available-in-the-drop-down-for-row-per-page/40587>\
**Category:** Developer Q&A Forum\
**Tags:** dynatrace-app-toolkit, strato, custom-app\
**Created:** [July 7, 2023, 8:18pm UTC](https://community.dynatrace.com/t/strato-datatable-pagination-is-there-a-way-to-change-the-values-available-in-the-drop-down-for-row-per-page/40587 "2023-07-07T20:18:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott-smith](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@scott-smith](https://community.dynatrace.com/u/scott-smith)\
**Post date:** [July 7, 2023, 8:18pm UTC](https://community.dynatrace.com/t/strato-datatable-pagination-is-there-a-way-to-change-the-values-available-in-the-drop-down-for-row-per-page/40587/1 "2023-07-07T20:18:37Z")

</div>

I would like the row per page values to be different than what is there by default [10, 20, 30, 40 ,50].&nbsp; Is there a way to change this?

 ![Screenshot 2023-07-07 151820.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/8/f8e013f58bf607316be5dba07ad9409a113f1da7.png)

---

<div class="post-metadata">

**Author:** ![imsingh](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imsingh/32/7858_2.png) [@imsingh](https://community.dynatrace.com/u/imsingh)\
**Post date:** [July 9, 2023, 8:24pm UTC](https://community.dynatrace.com/t/strato-datatable-pagination-is-there-a-way-to-change-the-values-available-in-the-drop-down-for-row-per-page/40587/2 "2023-07-09T20:24:53Z")

</div>

Hi there

Yes, you can change the page size to&nbsp;any value you want. In the following example, I changed the default size to 7:

```markup
<DataTable columns={columns} data={data}>
      <DataTable.Pagination defaultPageSize={7} />
    </DataTable>

```

Thanks

---

<div class="post-metadata">

**Author:** ![scott-smith](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@scott-smith](https://community.dynatrace.com/u/scott-smith)\
**Post date:** [July 12, 2023, 2:13pm UTC](https://community.dynatrace.com/t/strato-datatable-pagination-is-there-a-way-to-change-the-values-available-in-the-drop-down-for-row-per-page/40587/3 "2023-07-12T14:13:33Z")

</div>

Thank you.&nbsp; Is there also a way to change the list of page sizes that can be selected in the drop down list displayed.

---

<div class="post-metadata">

**Author:** ![SarahRiener](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@SarahRiener](https://community.dynatrace.com/u/SarahRiener)\
**Post date:** [July 18, 2023, 6:22am UTC](https://community.dynatrace.com/t/strato-datatable-pagination-is-there-a-way-to-change-the-values-available-in-the-drop-down-for-row-per-page/40587/4 "2023-07-18T06:22:43Z")

</div>

Hi&nbsp;[@scott-smith](https://community.dynatrace.com/user/62022)&nbsp;,

The defaultPageSize&nbsp;also influences the page size dropdown list (“x rows per page”). The specified value will be displayed as the smallest page size value. Furthermore, up to 4 more&nbsp;options will be available in the UI.&nbsp;The default options are&nbsp;10, 20, 30, 40, and 50. If you specify a defaultPageSize of 7 , the&nbsp;options will automatically be 7, 14, 21, 28, and 35.

Could you let me know if this meets what you’re trying to achieve?
