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

Kendo UI pageable TagHelper GridPageableSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("pageable", ParentTag = "kendo-grid", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("messages", new string[] { })]
[SuppressTagRendering]
public class GridPageableSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseGridPageableSettingsTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.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-grid name="grid">
    <pageable adaptive-mode="AdaptiveMode.Auto"></pageable>
</kendo-grid>

Child Tagsmessages

Constructors

Initializes a new instance of the GridPageableSettingsTagHelper class.

C#
public GridPageableSettingsTagHelper()

Properties

Specifies a value whether the page sizes dropdown will be adaptive

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

By default the grid will show the pager even when total amount of items in the DataSource is less than the pageSize.If set to false the grid will toggle the pager visibility as follows: when the total amount of items initially set in the DataSource is less than the pageSize number the pager will be hidden.; when the total amount of items initially set in the DataSource is greater than or equal to the pageSize number the pager will be shown.; when the total amount of items in the DataSource becomes less than the pageSize number (after delete, filter operation or pageSize change) the pager will be hidden. or when the total amount of items in the DataSource becomes greater than or equal to the pageSize number (after an insert, filter operation or pageSize change) the pager will be shown.. Introduced in the Kendo UI 2017 R3 release.

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

The maximum number of buttons displayed in the numeric pager. The pager will display ellipsis (...) if there are more pages than the specified number.

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

Enables or disables the configuration.

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

If set to true the pager will display information about the current page and total number of data items. By default the paging information is displayed.

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

If set to true the pager will display an input element which allows the user to type a specific page number. By default the page input is not displayed.Using pageable.input and pageable.numeric at the same time is not recommended.

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

If set to true the pager will display buttons for navigating to specific pages. By default those buttons are displayed.Using pageable.numeric and pageable.input at the same time is not recommended.

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

The number of data items which will be displayed in the grid. This setting will not work if the Grid is assigned an already existing Kendo UI DataSource instance.

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

Specifies the possible page size values.

C#
public IEnumerable PageSizes { get; set; }

Enables or disables the page size dropdown selector.

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

Specifies the position in which the grid pager will be rendered. Valid values are "top" and "bottom" (default).

C#
public PagerPosition? Position { get; set; }

If set to true the pager will display buttons for going to the first, previous, next and last pages. By default those buttons are displayed.

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

If set to true the pager will display the refresh button. Clicking the refresh button will refresh the grid. By default the refresh button is not displayed.

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

If set to false the pager will not be responsive. By default the pager is responsive.

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

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

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

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

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

Dictionary<string, object>