New to Telerik UI for ASP.NET Core? Download free 30-day trial
ASP.NET Core Grid Pager Functionality
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
When it is possible to fit all Telerik UI for ASP.NET Core Grid data items into a single page, you may not need to show a pager.
The Data Grid toggles the pager visibility by using the
.Pageable(pager => pager.AlwaysVisible(true))
method. By default, the component will show the pager even
when the total amount of items in the DataSource is less than the PageSize
.
If the value is set to false
, the behavior will be as follows:
- When the total amount of items initially set in the DataSource is less than the
PageSize
value, the pager will be hidden. - When the total amount of items initially set in the DataSource is greater than or equal to the
PageSize
value, the pager will be shown. - When the total amount of items in the DataSource becomes less than the
PageSize
value after a delete or filter operation, or a change in thePageSize
, the pager will be hidden. - When the total amount of items in the DataSource becomes greater than or equal to the
PageSize
value after an insert or filter operation, or a change in thePageSize
, the pager will be shown.
In this demo, the alwaysVisible checkbox enables or disables the pageable.alwaysVisible
option for the Data Grid. To set the pager position to the top, use the position
property of the pager—the pager on top checkbox changes the position of the Pager for the Grid.