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

Pager

Class

Kendo UI Pager component

Definition

Constructors

Initializes a new instance of the Pager class.

C#
public Pager(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

Specifies a value whether the page sizes dropdown will be adaptive

C#
public AdaptiveMode? AdaptiveMode { get; set; }

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 string ARIATemplate { get; set; }

The handler that returns the template used for ARIATemplate

C#
public string ARIATemplateHandler { get; set; }

The id of the script element used for ARIATemplate

C#
public string ARIATemplateId { get; set; }

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

C#
public bool? AutoBind { get; set; }

Defines the number of buttons displayed in the numeric pager.

C#
public double? ButtonCount { get; set; }

Gets or sets the DataSourceId.

C#
public string DataSourceId { get; set; }

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

C#
public bool? Info { get; set; }

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 bool? Input { get; set; }

The template for page number links.

C#
public string LinkTemplate { get; set; }

The handler that returns the template used for LinkTemplate

C#
public string LinkTemplateHandler { get; set; }

The id of the script element used for LinkTemplate

C#
public string LinkTemplateId { get; set; }

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

C#
public PagerMessagesSettings Messages { get; }

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

C#
public bool? Navigatable { get; set; }

Defines if numeric portion of the pager will be shown.

C#
public bool? Numeric { get; set; }

PageSizes member.

C#
public IEnumerable PageSizes { get; set; }

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

C#
public bool? PreviousNext { get; set; }

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

C#
public bool? Refresh { get; set; }

Defines if the pager will be responsive.

C#
public bool? Responsive { get; set; }

The template for selected page number link.

C#
public string SelectTemplate { get; set; }

The handler that returns the template used for SelectTemplate

C#
public string SelectTemplateHandler { get; set; }

The id of the script element used for SelectTemplate

C#
public string SelectTemplateId { get; set; }

Sets the size of the component.

C#
public ComponentSize? Size { get; set; }

Methods

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteHtml(TextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)