# PagedDataBoundComponent<T> Class

Base classes of components that support paging.

Namespace: [Radzen](https://blazor.radzen.com/docs/api/Radzen.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md)
- PagedDataBoundComponent<T>

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

```csharp
public class PagedDataBoundComponent<T> : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender
```

## Type Parameters

| Name | Description |
|------|-------------|
| T | The type of the data item |

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public PagedDataBoundComponent<T>()` | Base classes of components that support paging. |

## Fields

| Field | Type | Description |
|------|------|-------------|
| bottomPager | [`RadzenPager`](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenPager.md) | The bottom pager |
| skip | `int` | The skip |
| topPager | [`RadzenPager`](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenPager.md) | The top pager |

## Properties

| Property | Type | Description |
|------|------|-------------|
| AllowPaging | `bool` | Gets or sets a value indicating whether paging is allowed. Set to false by default. |
| Count | `int` | Gets or sets the count. |
| CurrentPage | `int` | Gets or sets the current page. |
| Data | `IEnumerable<T>` | Gets or sets the data. |
| Density | [`Density`](https://blazor.radzen.com/docs/api/Radzen.Density.md) | Gets or sets a value indicating pager density. |
| FirstPageAriaLabel | `string` | Gets or sets the pager's first page button's aria-label attribute. |
| FirstPageTitle | `string` | Gets or sets the pager's first page button's title attribute. |
| LastPageAriaLabel | `string` | Gets or sets the pager's last page button's aria-label attribute. |
| LastPageTitle | `string` | Gets or sets the pager's last page button's title attribute. |
| LoadData | `EventCallback<LoadDataArgs>` | Gets or sets the load data. |
| LoadingTemplate | `RenderFragment` | Gets or sets the loading template. |
| NextPageAriaLabel | `string` | Gets or sets the pager's next page button's aria-label attribute. |
| NextPageLabel | `string` | Gets or sets the pager's optional next page button's label text. |
| NextPageTitle | `string` | Gets or sets the pager's next page button's title attribute. |
| Page | `EventCallback<PagerEventArgs>` | Gets or sets the page callback. |
| PageAriaLabelFormat | `string` | Gets or sets the pager's numeric page number buttons' aria-label attributes. |
| PageNumbersCount | `int` | Gets or sets the page numbers count. |
| PageSize | `int` | Gets or sets the size of the page. |
| PageSizeOptions | `IEnumerable<int>` | Gets or sets the page size options. |
| PageSizeText | `string` | Gets or sets the page size description text. |
| PageTitleFormat | `string` | Gets or sets the pager's numeric page number buttons' title attributes. |
| PagedView | `IQueryable<T>` | Gets the paged view. |
| PagerAlwaysVisible | `bool` | Gets or sets a value indicating whether pager is visible even when not enough data for paging. |
| PagerHorizontalAlign | [`HorizontalAlign`](https://blazor.radzen.com/docs/api/Radzen.HorizontalAlign.md) | Gets or sets the horizontal align. |
| PagerInputSize | [`InputSize`](https://blazor.radzen.com/docs/api/Radzen.InputSize.md) | Gets or sets the size of the page size dropdown in the pager. Set to InputSize.Medium by default. |
| PagerPosition | [`PagerPosition`](https://blazor.radzen.com/docs/api/Radzen.PagerPosition.md) | Gets or sets the pager position. Set to PagerPosition.Bottom by default. |
| PagingSummaryFormat | `string` | Gets or sets the pager summary format. PagingSummaryTemplate has preference over this property. |
| PagingSummaryTemplate | `RenderFragment<PagingInformation>` | Gets or sets the pager summary template. Has preference over PagingSummaryFormat. |
| PrevPageAriaLabel | `string` | Gets or sets the pager's previous page button's aria-label attribute. |
| PrevPageLabel | `string` | Gets or sets the pager's optional previous page button's label text. |
| PrevPageTitle | `string` | Gets or sets the pager's previous page button's title attribute. |
| ShowPagingSummary | `bool` | Gets or sets the pager summary visibility. |
| Template | `RenderFragment<T>` | Gets or sets the template. |
| View | `IQueryable<T>` | Gets the view. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `CalculatePager()` | `void` | Calculates the pager. |
| `Dispose()` | `void` |  |
| `FirstPage(bool forceReload)` | `Task` | Firsts the page. Parameters: `forceReload`: if set to true [force reload]. |
| `GoToPage(int page, bool forceReload)` | `Task` | Goes to page. Parameters: `page`: The page. `forceReload`: if set to true [force reload]. |
| `LastPage()` | `Task` | Lasts the page. |
| `NextPage()` | `Task` | Nexts the page. |
| `OnAfterRenderAsync(bool firstRender)` | `Task` | Called when [after render asynchronous]. Parameters: `firstRender`: if set to true [first render]. Returns: Task. |
| `OnCollectionChanged(object sender, Collections.Specialized.NotifyCollectionChangedEventArgs args)` | `void` | Called when INotifyCollectionChanged CollectionChanged is raised. |
| `OnDataChanged()` | `void` | Called when [data changed]. |
| `OnPageChanged(PagerEventArgs args)` | `Task` | Handles the page changed event. Parameters: `args`: The [PagerEventArgs](https://blazor.radzen.com/docs/api/Radzen.PagerEventArgs.md) instance containing the event data. |
| `OnPageSizeChanged(int value)` | `Task` | Called when [page size changed]. Parameters: `value`: The value. |
| `OnParametersSetAsync()` | `Task` | Called when [parameters set asynchronous]. Returns: Task. |
| `PrevPage()` | `Task` | Previouses the page. |
| `Reload()` | `Task` | Reloads this instance. |
| `SetParametersAsync(ParameterView parameters)` | `Task` | Set parameters as an asynchronous operation. Parameters: `parameters`: The parameters. Returns: A Task representing the asynchronous operation. |

## Inherited Members

- From [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md): AddContextMenu, Attributes, ContextMenu, Culture, CurrentStyle, Debounce, DefaultCulture, DefaultUICulture, Element, GetComponentCssClass, GetCssClass, GetId, GetIdAttribute, IsJSRuntimeAvailable, JSRuntime, Localize, MouseEnter, MouseLeave, OnBecameInvisible, OnContextMenu, OnInitialized, OnMouseEnter, OnMouseLeave, RaiseContextMenu, RaiseMouseEnter, RaiseMouseLeave, Reference, Style, UICulture, UniqueID, Visible
- From ComponentBase: Assets, AssignedRenderMode, BuildRenderTree, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnInitializedAsync, OnParametersSet, RendererInfo, ShouldRender, StateHasChanged

