PagerBuilder
Defines the fluent API for configuring the Kendo Pager for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class PagerBuilder : WidgetBuilderBase<Pager, PagerBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Pager, PagerBuilder>PagerBuilder
Implements:
Inherited Members
Constructors
Methods
Specifies a value whether the page sizes dropdown will be adaptive
public PagerBuilder AdaptiveMode(AdaptiveMode value)
The value that configures the adaptivemode.
Returns: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 that configures the ariatemplate.
Returns: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: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 value)
The value that configures the ariatemplate.
Returns: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 value)
The value that configures the ariatemplate.
Returns: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(MvcHtmlString value)
The value that configures the ariatemplate.
Returns:Indicates whether the pager refresh method will be called within its initialization.
public PagerBuilder AutoBind(bool value)
The value that configures the autobind.
Returns:Defines the number of buttons displayed in the numeric pager.
public PagerBuilder ButtonCount(double value)
The value that configures the buttoncount.
Returns:Sets the id of the external data source of the widget.
Configures the client-side events.
public PagerBuilder Events(Action<PagerEventBuilder> configurator)
The client events action.
Returns:Defines if a label showing current paging information will be displayed.
public PagerBuilder Info(bool value)
The value that configures the info.
Returns: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 that configures the input.
Returns:The template for page number links.
public PagerBuilder LinkTemplate(string value)
The value that configures the linktemplate.
Returns:The template for page number links.
public PagerBuilder LinkTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the linktemplate.
Returns:The template for page number links.
public PagerBuilder LinkTemplateHandler(string value)
The value that configures the linktemplate.
Returns:The template for page number links.
public PagerBuilder LinkTemplateId(string value)
The value that configures the linktemplate.
Returns:The template for page number links.
public PagerBuilder LinkTemplateView(MvcHtmlString value)
The value that configures the linktemplate.
Returns:Defines texts shown within the pager. Use this option to customize or localize the pager messages.
public PagerBuilder Messages(Action<PagerMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns: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 that configures the navigatable.
Returns:Defines if numeric portion of the pager will be shown.
public PagerBuilder Numeric(bool value)
The value that configures the numeric.
Returns: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.
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.
Defines if buttons for navigating to the first, last, previous and next pages will be shown.
public PagerBuilder PreviousNext(bool value)
The value that configures the previousnext.
Returns: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 that configures the refresh.
Returns:Defines if the pager will be responsive.
public PagerBuilder Responsive(bool value)
The value that configures the responsive.
Returns:The template for selected page number link.
public PagerBuilder SelectTemplate(string value)
The value that configures the selecttemplate.
Returns:The template for selected page number link.
public PagerBuilder SelectTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the selecttemplate.
Returns:The template for selected page number link.
public PagerBuilder SelectTemplateHandler(string value)
The value that configures the selecttemplate.
Returns:The template for selected page number link.
public PagerBuilder SelectTemplateId(string value)
The value that configures the selecttemplate.
Returns:The template for selected page number link.
public PagerBuilder SelectTemplateView(MvcHtmlString value)
The value that configures the selecttemplate.
Returns:Sets the size of the component.
public PagerBuilder Size(ComponentSize value)
The value that configures the size.
Returns: