New to Telerik UI for ASP.NET MVC? 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, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

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 for the ARIATemplate

C#
public string ARIATemplateHandler { get; set; }

The id for the 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; }
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 for the LinkTemplate

C#
public string LinkTemplateHandler { get; set; }

The id for the 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; set; }

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; }
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 for the SelectTemplate

C#
public string SelectTemplateHandler { get; set; }

The id for the SelectTemplate

C#
public string SelectTemplateId { get; set; }

Sets the size of the component.

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

Methods

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

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

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

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)