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

Defines the fluent API for configuring the Kendo UI Pager

Definition

Constructors

Initializes a new instance of the PagerBuilder class.

C#
public PagerBuilder(Pager component)
Parameters:componentPager

Methods

Specifies a value whether the page sizes dropdown will be adaptive

C#
public PagerBuilder AdaptiveMode(AdaptiveMode value)
Parameters:valueAdaptiveMode

The value for AdaptiveMode

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

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..

C#
public PagerBuilder ARIATemplate(string value)
Parameters:valuestring

The value for ARIATemplate

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

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..

C#
public PagerBuilder ARIATemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the ariatemplate.

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

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..

C#
public PagerBuilder ARIATemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for ARIATemplate

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

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..

C#
public PagerBuilder ARIATemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for ARIATemplate

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

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..

C#
public PagerBuilder ARIATemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for ARIATemplate

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

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

C#
public PagerBuilder AutoBind(bool value)
Parameters:valuebool

The value for AutoBind

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

Defines the number of buttons displayed in the numeric pager.

C#
public PagerBuilder ButtonCount(double value)
Parameters:valuedouble

The value for ButtonCount

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

The Id of the external DataSource used by the of the pager.

C#
public PagerBuilder DataSource(string dataSourceId)
Parameters:dataSourceIdstringReturns:

PagerBuilder

Returns the current PagerBuilder instance.

Configures the client-side events.

C#
public PagerBuilder Events(Action<PagerEventBuilder> configurator)
Parameters:configuratorAction<PagerEventBuilder>

The client events action.

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

Example:
C#
@(Html.Kendo().Pager()
.Name("Pager")
.Events(events =&gt; events
.Change("onChange")
)
)

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

C#
public PagerBuilder Info(bool value)
Parameters:valuebool

The value for Info

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

Defines if an input element which allows the user to navigate to given page will be displayed. If enabled only the numeric input will be rendered in the numeric portion of the pager.

C#
public PagerBuilder Input()
Returns:

PagerBuilder

Returns the current PagerBuilder instance.

Defines if an input element which allows the user to navigate to given page will be displayed. If enabled only the numeric input will be rendered in the numeric portion of the pager.

C#
public PagerBuilder Input(bool value)
Parameters:valuebool

The value for Input

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

The template for page number links.

C#
public PagerBuilder LinkTemplate(string value)
Parameters:valuestring

The value for LinkTemplate

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

The template for page number links.

C#
public PagerBuilder LinkTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the linktemplate.

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

The template for page number links.

C#
public PagerBuilder LinkTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for LinkTemplate

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

The template for page number links.

C#
public PagerBuilder LinkTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for LinkTemplate

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

The template for page number links.

C#
public PagerBuilder LinkTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for LinkTemplate

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

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

C#
public PagerBuilder Messages(Action<PagerMessagesSettingsBuilder> configurator)
Parameters:configuratorAction<PagerMessagesSettingsBuilder>

The PagerMessagesSettingsBuilder for the messages setting.

Returns:

PagerBuilder

Returns the current instance of PagerBuilder .

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

C#
public PagerBuilder Navigatable()
Returns:

PagerBuilder

Returns the current PagerBuilder instance.

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

C#
public PagerBuilder Navigatable(bool value)
Parameters:valuebool

The value for Navigatable

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

Defines if numeric portion of the pager will be shown.

C#
public PagerBuilder Numeric(bool value)
Parameters:valuebool

The value for Numeric

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

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.

C#
public PagerBuilder PageSizes()
Returns:

PagerBuilder

Returns the current PagerBuilder instance.

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.

C#
public PagerBuilder PageSizes(bool enabled)
Parameters:enabledbool

The value for PageSizes

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

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.

C#
public PagerBuilder PageSizes(IEnumerable pageSizes)
Parameters:pageSizesIEnumerableReturns:

PagerBuilder

Returns the current PagerBuilder instance.

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

C#
public PagerBuilder PreviousNext(bool value)
Parameters:valuebool

The value for PreviousNext

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

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

C#
public PagerBuilder Refresh()
Returns:

PagerBuilder

Returns the current PagerBuilder instance.

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

C#
public PagerBuilder Refresh(bool value)
Parameters:valuebool

The value for Refresh

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

Defines if the pager will be responsive.

C#
public PagerBuilder Responsive(bool value)
Parameters:valuebool

The value for Responsive

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

The template for selected page number link.

C#
public PagerBuilder SelectTemplate(string value)
Parameters:valuestring

The value for SelectTemplate

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

The template for selected page number link.

C#
public PagerBuilder SelectTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the selecttemplate.

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

The template for selected page number link.

C#
public PagerBuilder SelectTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for SelectTemplate

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

The template for selected page number link.

C#
public PagerBuilder SelectTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for SelectTemplate

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

The template for selected page number link.

C#
public PagerBuilder SelectTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for SelectTemplate

Returns:

PagerBuilder

Returns the current PagerBuilder instance.

Sets the size of the component.

C#
public PagerBuilder Size(ComponentSize value)
Parameters:valueComponentSize

The value for Size

Returns:

PagerBuilder

Returns the current PagerBuilder instance.