Kendo.Mvc.UI.Fluent.PagerBuilder
Defines the fluent API for configuring the Kendo UI Pager
Methods
PageSizes(System.Boolean)
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.
Parameters
value System.Boolean
The value for PageSizes
PageSizes
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.
PageSizes(System.Collections.IEnumerable)
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.
ARIATemplate(System.String)
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..
Parameters
value System.String
The value for ARIATemplate
ARIATemplateId(System.String)
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..
Parameters
templateId System.String
The ID of the template element for ARIATemplate
AutoBind(System.Boolean)
Indicates whether the pager refresh method will be called within its initialization.
Parameters
value System.Boolean
The value for AutoBind
ButtonCount(System.Double)
Defines the number of buttons displayed in the numeric pager.
Parameters
value System.Double
The value for ButtonCount
SelectTemplate(System.String)
The template for selected page number link.
Parameters
value System.String
The value for SelectTemplate
SelectTemplateId(System.String)
The template for selected page number link.
Parameters
templateId System.String
The ID of the template element for SelectTemplate
LinkTemplate(System.String)
The template for page number links.
Parameters
value System.String
The value for LinkTemplate
LinkTemplateId(System.String)
The template for page number links.
Parameters
templateId System.String
The ID of the template element for LinkTemplate
Info(System.Boolean)
Defines if a label showing current paging information will be displayed.
Parameters
value System.Boolean
The value for Info
Input(System.Boolean)
Defines if an input element which allows the user to navigate to given page will be displayed.
Parameters
value System.Boolean
The value for Input
Input
Defines if an input element which allows the user to navigate to given page will be displayed.
Numeric(System.Boolean)
Defines if numeric portion of the pager will be shown.
Parameters
value System.Boolean
The value for Numeric
PreviousNext(System.Boolean)
Defines if buttons for navigating to the first, last, previous and next pages will be shown.
Parameters
value System.Boolean
The value for PreviousNext
Refresh(System.Boolean)
Defines if a refresh button will be displayed. Click on that button will call DataSource read() method to get actual data.
Parameters
value System.Boolean
The value for Refresh
Refresh
Defines if a refresh button will be displayed. Click on that button will call DataSource read() method to get actual data.
Responsive(System.Boolean)
Defines if the pager will be responsive.
Parameters
value System.Boolean
The value for Responsive
Messages(System.Action<Kendo.Mvc.UI.Fluent.PagerMessagesSettingsBuilder>)
Defines texts shown within the pager. Use this option to customize or localize the pager messages.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.PagerMessagesSettingsBuilder>
The configurator for the messages setting.
Navigatable(System.Boolean)
If set to true the user could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.
Parameters
value System.Boolean
The value for Navigatable
Navigatable
If set to true the user could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.
Events(System.Action<Kendo.Mvc.UI.Fluent.PagerEventBuilder>)
Configures the client-side events.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.PagerEventBuilder>
The client events action.
Example (ASPX)
@(Html.Kendo().Pager()
.Name("Pager")
.Events(events => events
.Change("onChange")
)
)