Pager
Kendo UI Pager component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Pager : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBasePager
Implements:
Inherited Members
Constructors
Initializes a new instance of the Pager class.
public Pager(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
Specifies a value whether the page sizes dropdown will be adaptive
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..
public string ARIATemplate { get; set; }
The handler for the ARIATemplate
public string ARIATemplateHandler { get; set; }
The id for the ARIATemplate
public string ARIATemplateId { get; set; }
Indicates whether the pager refresh method will be called within its initialization.
public bool? AutoBind { get; set; }
Defines the number of buttons displayed in the numeric pager.
public double? ButtonCount { get; set; }
public string DataSourceId { get; set; }
Defines if a label showing current paging information will be displayed.
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.
public bool? Input { get; set; }
The template for page number links.
public string LinkTemplate { get; set; }
The handler for the LinkTemplate
public string LinkTemplateHandler { get; set; }
The id for the LinkTemplate
public string LinkTemplateId { get; set; }
Defines texts shown within the pager. Use this option to customize or localize the pager messages.
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.
public bool? Navigatable { get; set; }
Defines if numeric portion of the pager will be shown.
public bool? Numeric { get; set; }
public IEnumerable PageSizes { get; set; }
Defines if buttons for navigating to the first, last, previous and next pages will be shown.
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.
public bool? Refresh { get; set; }
Defines if the pager will be responsive.
public bool? Responsive { get; set; }
The template for selected page number link.
public string SelectTemplate { get; set; }
The handler for the SelectTemplate
public string SelectTemplateHandler { get; set; }
The id for the SelectTemplate
public string SelectTemplateId { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: