Pager
Kendo UI Pager component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Pager : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBasePager
Implements:
Inherited Members
Constructors
Initializes a new instance of the Pager class.
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 that returns the template used for ARIATemplate
public string ARIATemplateHandler { get; set; }
The id of the script element used for 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; }
Gets or sets the DataSourceId.
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 that returns the template used for LinkTemplate
public string LinkTemplateHandler { get; set; }
The id of the script element used for 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; }
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; }
PageSizes member.
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 that returns the template used for SelectTemplate
public string SelectTemplateHandler { get; set; }
The id of the script element used for SelectTemplate
public string SelectTemplateId { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML.
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: