New to Telerik UI for ASP.NET Core? Download free 30-day trial

PagerBuilder

Defines the fluent API for configuring the Kendo UI Pager

Properties

WriteAction - Func

Methods

DataSource(System.String)

Parameters

dataSourceId - System.String

PageSizes(System.Boolean)

If set to true the pager will display a drop-down which allows the user to pick a page size. By default the page size drop-down is not displayed.Can be set to an array of predefined page sizes to override the default list. A special all value is supported. It sets the page size to the total number of records.If a pageSize setting is provided for the data source then this value will be selected initially.

Parameters

enabled - System.Boolean

PageSizes()

If set to true the pager will display a drop-down which allows the user to pick a page size. By default the page size drop-down is not displayed.Can be set to an array of predefined page sizes to override the default list. A special all value is supported. It sets the page size to the total number of records.If a pageSize setting is provided for the data source then this value will be selected initially.

PageSizes(System.Collections.IEnumerable)

If set to true the pager will display a drop-down which allows the user to pick a page size. By default the page size drop-down is not displayed.Can be set to an array of predefined page sizes to override the default list. A special all value is supported. It sets the page size to the total number of records.If a pageSize setting is provided for the data source then this value will be selected initially.

Parameters

pageSizes - System.Collections.IEnumerable

ARIATemplate(System.String)

Specifies a template used to populate the value of the aria-label attribute of the pager element.The parameters available for the template are: page - The current page. or totalPages - The total number of pages..

Parameters

value - System.String

The value for ARIATemplate

ARIATemplateId(System.String)

Specifies a template used to populate the value of the aria-label attribute of the pager element.The parameters available for the template are: page - The current page. or totalPages - The total number of pages..

Parameters

templateId - System.String

The ID of the template element for ARIATemplate

AutoBind(System.Boolean)

Indicates whether the pager refresh method will be called within its initialization.

Parameters

value - System.Boolean

The value for AutoBind

ButtonCount(System.Double)

Defines the number of buttons displayed in the numeric pager.

Parameters

value - System.Double

The value for ButtonCount

SelectTemplate(System.String)

The template for selected page number link.

Parameters

value - System.String

The value for SelectTemplate

SelectTemplateId(System.String)

The template for selected page number link.

Parameters

templateId - System.String

The ID of the template element for SelectTemplate

LinkTemplate(System.String)

The template for page number links.

Parameters

value - System.String

The value for LinkTemplate

LinkTemplateId(System.String)

The template for page number links.

Parameters

templateId - System.String

The ID of the template element for LinkTemplate

Info(System.Boolean)

Defines if a label showing current paging information will be displayed.

Parameters

value - System.Boolean

The value for Info

Input(System.Boolean)

Defines if an input element which allows the user to navigate to given page will be displayed.

Parameters

value - System.Boolean

The value for Input

Input()

Defines if an input element which allows the user to navigate to given page will be displayed.

Numeric(System.Boolean)

Defines if numeric portion of the pager will be shown.

Parameters

value - System.Boolean

The value for Numeric

PreviousNext(System.Boolean)

Defines if buttons for navigating to the first, last, previous and next pages will be shown.

Parameters

value - System.Boolean

The value for PreviousNext

Refresh(System.Boolean)

Defines if a refresh button will be displayed. Click on that button will call DataSource read() method to get actual data.

Parameters

value - System.Boolean

The value for Refresh

Refresh()

Defines if a refresh button will be displayed. Click on that button will call DataSource read() method to get actual data.

Responsive(System.Boolean)

Defines if the pager will be responsive.

Parameters

value - System.Boolean

The value for Responsive

Messages(System.Action)

Defines texts shown within the pager. Use this option to customize or localize the pager messages.

Parameters

configurator - System.Action<PagerMessagesSettingsBuilder>

The configurator for the messages setting.

If set to true the user could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.

Parameters

value - System.Boolean

The value for Navigatable

If set to true the user could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<PagerEventBuilder>

The client events action.

Example


            @(Html.Kendo().Pager()
                  .Name("Pager")
                  .Events(events => events
                      .Change("onChange")
                  )
            )

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

Render()

Renders the component in place.

ToHtmlString()

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

In this article
Not finding the help you need?