PagerBuilder
Defines the fluent API for configuring the Kendo UI Pager
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class PagerBuilder : WidgetBuilderBase<Pager, PagerBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Pager, PagerBuilder>PagerBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the PagerBuilder class.
Methods
Specifies a value whether the page sizes dropdown will be adaptive
public PagerBuilder AdaptiveMode(AdaptiveMode value)
The value for AdaptiveMode
Returns:Returns the current PagerBuilder instance.
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 PagerBuilder ARIATemplate(string value)
The value for ARIATemplate
Returns:Returns the current PagerBuilder instance.
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 PagerBuilder ARIATemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the ariatemplate.
Returns:Returns the current PagerBuilder instance.
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 PagerBuilder ARIATemplateHandler(string templateHandler)
The handler that returs the template for ARIATemplate
Returns:Returns the current PagerBuilder instance.
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 PagerBuilder ARIATemplateId(string templateId)
The ID of the template element for ARIATemplate
Returns:Returns the current PagerBuilder instance.
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 PagerBuilder ARIATemplateView(IHtmlContent templateView)
The view that contains the template for ARIATemplate
Returns:Returns the current PagerBuilder instance.
Indicates whether the pager refresh method will be called within its initialization.
public PagerBuilder AutoBind(bool value)
The value for AutoBind
Returns:Returns the current PagerBuilder instance.
Defines the number of buttons displayed in the numeric pager.
public PagerBuilder ButtonCount(double value)
The value for ButtonCount
Returns:Returns the current PagerBuilder instance.
The Id of the external DataSource used by the of the pager.
public PagerBuilder DataSource(string dataSourceId)
Returns the current PagerBuilder instance.
Configures the client-side events.
public PagerBuilder Events(Action<PagerEventBuilder> configurator)
The client events action.
Returns:Returns the current PagerBuilder instance.
Defines if a label showing current paging information will be displayed.
public PagerBuilder Info(bool value)
The value for Info
Returns:Returns the current PagerBuilder instance.
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.
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 PagerBuilder Input(bool value)
The value for Input
Returns:Returns the current PagerBuilder instance.
The template for page number links.
public PagerBuilder LinkTemplate(string value)
The value for LinkTemplate
Returns:Returns the current PagerBuilder instance.
The template for page number links.
public PagerBuilder LinkTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the linktemplate.
Returns:Returns the current PagerBuilder instance.
The template for page number links.
public PagerBuilder LinkTemplateHandler(string templateHandler)
The handler that returs the template for LinkTemplate
Returns:Returns the current PagerBuilder instance.
The template for page number links.
public PagerBuilder LinkTemplateId(string templateId)
The ID of the template element for LinkTemplate
Returns:Returns the current PagerBuilder instance.
The template for page number links.
public PagerBuilder LinkTemplateView(IHtmlContent templateView)
The view that contains the template for LinkTemplate
Returns:Returns the current PagerBuilder instance.
Defines texts shown within the pager. Use this option to customize or localize the pager messages.
public PagerBuilder Messages(Action<PagerMessagesSettingsBuilder> configurator)
The PagerMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of PagerBuilder .
If set to true the user could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.
If set to true the user could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.
public PagerBuilder Navigatable(bool value)
The value for Navigatable
Returns:Returns the current PagerBuilder instance.
Defines if numeric portion of the pager will be shown.
public PagerBuilder Numeric(bool value)
The value for Numeric
Returns:Returns the current PagerBuilder instance.
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.
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.
public PagerBuilder PageSizes(bool enabled)
The value for PageSizes
Returns:Returns the current PagerBuilder instance.
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.
public PagerBuilder PageSizes(IEnumerable pageSizes)
Returns the current PagerBuilder instance.
Defines if buttons for navigating to the first, last, previous and next pages will be shown.
public PagerBuilder PreviousNext(bool value)
The value for PreviousNext
Returns:Returns the current PagerBuilder instance.
Defines if a refresh button will be displayed. Click on that button will call DataSource read() method to get actual data.
Defines if a refresh button will be displayed. Click on that button will call DataSource read() method to get actual data.
public PagerBuilder Refresh(bool value)
The value for Refresh
Returns:Returns the current PagerBuilder instance.
Defines if the pager will be responsive.
public PagerBuilder Responsive(bool value)
The value for Responsive
Returns:Returns the current PagerBuilder instance.
The template for selected page number link.
public PagerBuilder SelectTemplate(string value)
The value for SelectTemplate
Returns:Returns the current PagerBuilder instance.
The template for selected page number link.
public PagerBuilder SelectTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the selecttemplate.
Returns:Returns the current PagerBuilder instance.
The template for selected page number link.
public PagerBuilder SelectTemplateHandler(string templateHandler)
The handler that returs the template for SelectTemplate
Returns:Returns the current PagerBuilder instance.
The template for selected page number link.
public PagerBuilder SelectTemplateId(string templateId)
The ID of the template element for SelectTemplate
Returns:Returns the current PagerBuilder instance.
The template for selected page number link.
public PagerBuilder SelectTemplateView(IHtmlContent templateView)
The view that contains the template for SelectTemplate
Returns:Returns the current PagerBuilder instance.
Sets the size of the component.
public PagerBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current PagerBuilder instance.