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

Defines the fluent API for configuring the Kendo Pager for ASP.NET MVC.

Definition

Constructors

Initializes a new instance of the Pager class.

C#
public PagerBuilder(Pager component)
Parameters:componentPager

The component.

Methods

Specifies a value whether the page sizes dropdown will be adaptive

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

The value that configures the adaptivemode.

Returns:

PagerBuilder

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 that configures the ariatemplate.

Returns:

PagerBuilder

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

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 value)
Parameters:valuestring

The value that configures the ariatemplate.

Returns:

PagerBuilder

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 value)
Parameters:valuestring

The value that configures the ariatemplate.

Returns:

PagerBuilder

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(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the ariatemplate.

Returns:

PagerBuilder

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

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

The value that configures the autobind.

Returns:

PagerBuilder

Defines the number of buttons displayed in the numeric pager.

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

The value that configures the buttoncount.

Returns:

PagerBuilder

Sets the id of the external data source of the widget.

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

PagerBuilder

Configures the client-side events.

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

The client events action.

Returns:

PagerBuilder

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 that configures the info.

Returns:

PagerBuilder

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 that configures the input.

Returns:

PagerBuilder

The template for page number links.

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

The value that configures the linktemplate.

Returns:

PagerBuilder

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

The template for page number links.

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

The value that configures the linktemplate.

Returns:

PagerBuilder

The template for page number links.

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

The value that configures the linktemplate.

Returns:

PagerBuilder

The template for page number links.

C#
public PagerBuilder LinkTemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the linktemplate.

Returns:

PagerBuilder

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 action that configures the messages.

Returns:

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(bool value)
Parameters:valuebool

The value that configures the navigatable.

Returns:

PagerBuilder

Defines if numeric portion of the pager will be shown.

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

The value that configures the numeric.

Returns:

PagerBuilder

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

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:enabledboolReturns:

PagerBuilder

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

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 that configures the previousnext.

Returns:

PagerBuilder

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 that configures the refresh.

Returns:

PagerBuilder

Defines if the pager will be responsive.

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

The value that configures the responsive.

Returns:

PagerBuilder

The template for selected page number link.

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

The value that configures the selecttemplate.

Returns:

PagerBuilder

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

The template for selected page number link.

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

The value that configures the selecttemplate.

Returns:

PagerBuilder

The template for selected page number link.

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

The value that configures the selecttemplate.

Returns:

PagerBuilder

The template for selected page number link.

C#
public PagerBuilder SelectTemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the selecttemplate.

Returns:

PagerBuilder

Sets the size of the component.

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

The value that configures the size.

Returns:

PagerBuilder