New to Telerik UI for Blazor? Download Free 30-day trial
Pager - Integration
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Weather Data
Date | Low °C | High °C |
---|---|---|
|
|
|
01/02/2021 | -12.0 | 3.3 |
01/03/2021 | -10.0 | 5.2 |
01/04/2021 | -8.0 | 3.2 |
01/05/2021 | -7.0 | 11.0 |
01/06/2021 | 0.0 | 9.0 |
- Integration.razor
- WeatherService.cs
- WeatherDto.cs
Loading the demo source code...please wait.
Description
We use the Pager component in our own components. Now you can use it in yours too. This example shows how you can put an additional pager at the top of the Grid, which can be useful for long pages sizes or tall rows.
Notice how the total item count is set to CurrentDataCount
in the OnRead
handler. If Grid filtering is disabled, you can also bind the Grid via its Data
parameter and set the Total
parameter of the Pager to AllWeatherData.Count()
.
This Blazor Pager Integration example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.