# Enable Grid scrollbar conditionally based on page size

## Environment

<table>
	<tbody>
		<tr>
			<td>Product Version</td>
			<td>5.12.0</td>
		</tr>
		<tr>
			<td>Product</td>
			<td>Progress® KendoReact Grid</td>
		</tr>
	</tbody>
</table>

## Description

I want to enable the scrollable functionality of the Grid if page size is higher than 10

## Solution

This can be achieved by setting the scrollable property of the Grid from a state variable and update its value based on the current page size (either within the onPageChange or within the onDataStateChange event)

This is an example showcasing this approach:

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/grid/grid-conditional-scrollbar/source.txt)
