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

Kendo UI Pager TagHelper PagerTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("kendo-pager")]
[RestrictChildren("messages", new string[] { })]
public class PagerTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperBasePagerTagHelper

Implements: ITagHelperITagHelperComponentITemplateComponent

Inherited Members TagHelperBase.MinimumValidatorTagHelperBase.MaximumValidatorTagHelperBase.Init(TagHelperContext)TagHelperBase.Process(TagHelperContext, TagHelperOutput)TagHelperBase.GetInitializator()TagHelperBase.VerifySettings()TagHelperBase.GenerateId(TagHelperOutput)TagHelperBase.CreateHandler(string)TagHelperBase.GetRangeValidationParameter<TValue>(ModelExplorer, string)TagHelperBase.ExtractEditFormat(string)TagHelperBase.ToDictionaryHandler(IDictionary<string, string>)TagHelperBase.AddSelfToTemplate(TagHelperContext)TagHelperBase.ViewContextTagHelperBase.GeneratorTagHelperBase.InitializerTagHelperBase.WriterTagHelperBase.ScriptAttributesTagHelperBase.NameTagHelperBase.IdTagHelperBase.SelectorTagHelperBase.IdPrefixTagHelperBase.IsInClientTemplateTagHelperBase.DeferredTagHelperBase.AsModuleTagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-pager name="pager1" refresh="true" datasource-id="dataSource1" page-sizes="true"></kendo-pager>

Child Tagsmessages

Constructors

Initializes a new instance of the PagerTagHelper class.

C#
public PagerTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

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; }

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.. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string ARIATemplateHandler { 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.. This option expects the ID of the script element that contains the template.

C#
public string ARIATemplateId { 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.. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent ARIATemplateView { 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; }

The Id of the data source.

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 template for page number links. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string LinkTemplateHandler { get; set; }

The template for page number links. This option expects the ID of the script element that contains the template.

C#
public string LinkTemplateId { get; set; }

The template for page number links. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent LinkTemplateView { 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; }

The name of the JavaScript function that will handle the change event. Fires when the current page has changed.

C#
public string OnChange { get; set; }

The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the Pager is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public string OnKendoKeydown { get; set; }

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 bool? 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 template for selected page number link. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string SelectTemplateHandler { get; set; }

The template for selected page number link. This option expects the ID of the script element that contains the template.

C#
public string SelectTemplateId { get; set; }

The template for selected page number link. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent SelectTemplateView { get; set; }

Sets the size of the component.

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

Configures the templates for the Pager.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

Methods

Gets the initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

The initialization script.

Overrides: TagHelperBase.GetInitializationScript()

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

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

IDictionary<string, object>

Overrides: TagHelperBase.Serialize()

SerializeEvents method.

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

Dictionary<string, object>

Overrides: TagHelperBase.SerializeEvents()

SerializeSettings method.

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

Dictionary<string, object>

Overrides: TagHelperBase.SerializeSettings()

Serializes the defined templates.

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

Dictionary<string, object>

Overrides: TagHelperBase.SerializeTemplates()

Writes the HTML output.

C#
protected override void WriteHtml(TagHelperOutput output)
Parameters:outputTagHelperOutput

The TagHelper output.

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)