Base classes of components that support paging.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.GetComponentCssClass
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.BuildRenderTree
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public class PagedDataBoundComponent<T> : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender| Name | Description |
|---|---|
| T | The type of the data item |
Base classes of components that support paging.
public PagedDataBoundComponent<T>()Gets or sets a value indicating whether paging is allowed. Set to false by default.
public bool AllowPaging { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether paging is allowed. Set to false by default. |
Gets or sets the count.
public int Count { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the count. |
Gets or sets the current page.
public int CurrentPage { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the current page. |
Gets or sets the data.
public IEnumerable<T> Data { get; set; }
| Type | Description |
|---|---|
| IEnumerable<T> | Gets or sets the data. |
Gets or sets a value indicating pager density.
public Density Density { get; set; }
| Type | Description |
|---|---|
| Density | Gets or sets a value indicating pager density. |
Gets or sets the pager's first page button's aria-label attribute.
public string FirstPageAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the pager's first page button's aria-label attribute. |
Gets or sets the pager's first page button's title attribute.
public string FirstPageTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the pager's first page button's title attribute. |
Gets or sets the pager's last page button's aria-label attribute.
public string LastPageAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the pager's last page button's aria-label attribute. |
Gets or sets the pager's last page button's title attribute.
public string LastPageTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the pager's last page button's title attribute. |
Gets or sets the load data.
public EventCallback<LoadDataArgs> LoadData { get; set; }
| Type | Description |
|---|---|
| EventCallback<LoadDataArgs> | Gets or sets the load data. |
Gets or sets the loading template.
public RenderFragment LoadingTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the loading template. |
Gets or sets the pager's next page button's aria-label attribute.
public string NextPageAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the pager's next page button's aria-label attribute. |
Gets or sets the pager's optional next page button's label text.
public string NextPageLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the pager's optional next page button's label text. |
Gets or sets the pager's next page button's title attribute.
public string NextPageTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the pager's next page button's title attribute. |
Gets or sets the page callback.
public EventCallback<PagerEventArgs> Page { get; set; }
| Type | Description |
|---|---|
| EventCallback<PagerEventArgs> | Gets or sets the page callback. |
Gets or sets the pager's numeric page number buttons' aria-label attributes.
public string PageAriaLabelFormat { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the pager's numeric page number buttons' aria-label attributes. |
Gets or sets the page numbers count.
public int PageNumbersCount { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the page numbers count. |
Gets or sets the size of the page.
public int PageSize { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the size of the page. |
Gets or sets the page size options.
public IEnumerable<int> PageSizeOptions { get; set; }
| Type | Description |
|---|---|
| IEnumerable<int> | Gets or sets the page size options. |
Gets or sets the page size description text.
public string PageSizeText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the page size description text. |
Gets or sets the pager's numeric page number buttons' title attributes.
public string PageTitleFormat { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the pager's numeric page number buttons' title attributes. |
Gets the paged view.
public IQueryable<T> PagedView { get; }
| Type | Description |
|---|---|
| IQueryable<T> | Gets the paged view. |
Gets or sets a value indicating whether pager is visible even when not enough data for paging.
public bool PagerAlwaysVisible { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether pager is visible even when not enough data for paging. |
Gets or sets the horizontal align.
public HorizontalAlign PagerHorizontalAlign { get; set; }
| Type | Description |
|---|---|
| HorizontalAlign | Gets or sets the horizontal align. |
Gets or sets the pager position. Set to PagerPosition.Bottom by default.
public PagerPosition PagerPosition { get; set; }
| Type | Description |
|---|---|
| PagerPosition | Gets or sets the pager position. Set to PagerPosition.Bottom by default. |
Gets or sets the pager summary format. PagingSummaryTemplate has preference over this property.
public string PagingSummaryFormat { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the pager summary format. PagingSummaryTemplate has preference over this property. |
Gets or sets the pager summary template. Has preference over PagingSummaryFormat.
public RenderFragment<PagingInformation> PagingSummaryTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment<PagingInformation> | Gets or sets the pager summary template. Has preference over PagingSummaryFormat. |
Gets or sets the pager's previous page button's aria-label attribute.
public string PrevPageAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the pager's previous page button's aria-label attribute. |
Gets or sets the pager's optional previous page button's label text.
public string PrevPageLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the pager's optional previous page button's label text. |
Gets or sets the pager's previous page button's title attribute.
public string PrevPageTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the pager's previous page button's title attribute. |
Gets or sets the pager summary visibility.
public bool ShowPagingSummary { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets the pager summary visibility. |
Gets or sets the template.
public RenderFragment<T> Template { get; set; }
| Type | Description |
|---|---|
| RenderFragment<T> | Gets or sets the template. |
Gets the view.
public IQueryable<T> View { get; }
| Type | Description |
|---|---|
| IQueryable<T> | Gets the view. |
Firsts the page.
public Task FirstPage(bool forceReload)
| Type | Name | Description |
|---|---|---|
| bool | forceReload | if set to true [force reload]. |
| Type | Description |
|---|---|
| Task |
Goes to page.
public Task GoToPage(int page, bool forceReload)
| Type | Name | Description |
|---|---|---|
| int | page | The page. |
| bool | forceReload | if set to true [force reload]. |
| Type | Description |
|---|---|
| Task |
Called when [after render asynchronous].
protected override Task OnAfterRenderAsync(bool firstRender)
| Type | Name | Description |
|---|---|---|
| bool | firstRender | if set to true [first render]. |
| Type | Description |
|---|---|
| Task | Task. |
Called when INotifyCollectionChanged CollectionChanged is raised.
protected virtual void OnCollectionChanged(object sender, Collections.Specialized.NotifyCollectionChangedEventArgs args)
| Type | Name | Description |
|---|---|---|
| object | sender | |
| Collections.Specialized.NotifyCollectionChangedEventArgs | args |
Handles the page changed event.
protected Task OnPageChanged(PagerEventArgs args)
| Type | Name | Description |
|---|---|---|
| PagerEventArgs | args | The PagerEventArgs instance containing the event data. |
| Type | Description |
|---|---|
| Task |
Called when [page size changed].
protected virtual Task OnPageSizeChanged(int value)
| Type | Name | Description |
|---|---|---|
| int | value | The value. |
| Type | Description |
|---|---|
| Task |
Called when [parameters set asynchronous].
protected override Task OnParametersSetAsync()
| Type | Description |
|---|---|
| Task | Task. |
Reloads this instance.
public virtual Task Reload()
| Type | Description |
|---|---|
| Task |
Set parameters as an asynchronous operation.
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters | The parameters. |
| Type | Description |
|---|---|
| Task | A Task representing the asynchronous operation. |