Class
TelerikPager

The class for the Telerik Pager component.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class TelerikPager : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikPager

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.SetParametersAsync(ParameterView)

Constructors

TelerikPager()

Declaration

cs-api-definition
public TelerikPager()

Properties

Adaptive

Defines whether pager elements should be changed based on the screen size. Default value is true.

Declaration

cs-api-definition
[Parameter]
public bool Adaptive { get; set; }

Property Value

bool

AriaControls

Identifies the element whose contents are controlled by the pager.

Declaration

cs-api-definition
[Parameter]
public string AriaControls { get; set; }

Property Value

string

ButtonCount

Defines the page buttons count of the pager. Default value is 10.

Declaration

cs-api-definition
[Parameter]
public int ButtonCount { get; set; }

Property Value

int

CurrentPage

Declaration

cs-api-definition
public int CurrentPage { get; set; }

Property Value

int

InputType

Defines the input type of the pager. Default value is See Buttons.

Declaration

cs-api-definition
[Parameter]
public PagerInputType InputType { get; set; }

Property Value

PagerInputType

Page

Defines the current selected page of the pager. Default value is 1.

Declaration

cs-api-definition
[Parameter]
public int Page { get; set; }

Property Value

int

PageChanged

Fires when new page is selected.

Declaration

cs-api-definition
[Parameter]
public EventCallback<int> PageChanged { get; set; }

Property Value

EventCallback<int>

PageSize

Defines the size of the page in the Pager. Default value is 10.

Declaration

cs-api-definition
[Parameter]
public int PageSize { get; set; }

Property Value

int

PageSizeChanged

Fires when new page size is selected.

Declaration

cs-api-definition
[Parameter]
public EventCallback<int> PageSizeChanged { get; set; }

Property Value

EventCallback<int>

PageSizes

Defines the list of available page sizes. Null element will show total elements on one page.

Declaration

cs-api-definition
[Parameter]
public List<int?> PageSizes { get; set; }

Property Value

List<int?>

ShowInfo

Defines whether the information about the current page and the total number of records is present. Default value is true.

Declaration

cs-api-definition
[Parameter]
public bool ShowInfo { get; set; }

Property Value

bool

Size

Specifies the size of the pager. Default value is Medium.

Declaration

cs-api-definition
[Parameter]
public string Size { get; set; }

Property Value

string

Total

Defines the Total elements count.

Declaration

cs-api-definition
[Parameter]
public int Total { get; set; }

Property Value

int

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

Dispose()

Declaration

cs-api-definition
public override void Dispose()

Overrides BaseComponent.Dispose()

OnAfterRenderAsync(bool)

Declaration

cs-api-definition
protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender

bool

Returns

Task

Overrides BaseComponent.OnAfterRenderAsync(bool)

OnParametersSetAsync()

Declaration

cs-api-definition
protected override Task OnParametersSetAsync()

Returns

Task

Overrides ComponentBase.OnParametersSetAsync()