Defines the fluent interface for configuring Pageable
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TBuilder
Syntax:
public abstract class PageableBuilder<TBuilder> where TBuilder : PageableBuilder<TBuilder>
Inheritance: objectPageableBuilder<TBuilder>
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the PageableBuilder class.
Methods
Specifies a value whether the page sizes dropdown will be adaptive.
public TBuilder AdaptiveMode(AdaptiveMode adaptiveMode)
TBuilder
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 TBuilder ARIATemplate(string value)
The value that configures the ariatemplate.
Returns:TBuilder
The template that renders the content of the aria-label attribute.
public TBuilder ARIATemplateHandler(string value)
The JavaScript function that will return the template content.
Returns:TBuilder
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 TBuilder ARIATemplateId(string value)
The value that configures the ariatemplate.
Returns:TBuilder
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 TBuilder ARIATemplateView(MvcHtmlString value)
The view that configures the ariatemplate.
Returns:TBuilder
Sets the number of buttons displayed in the numeric pager. Default is 10.
Enables or disables paging.
public TBuilder Enabled(bool value)
The value that configures the paging.
Returns:TBuilder
The Enabled method is useful when you need to enable paging based on certain conditions.
Defines if a label showing current paging information will be displayed.
public TBuilder Info(bool enabled)
The value that determines whether the paging information will be shown
Returns:TBuilder
Defines if an input element which allows the user to navigate to given page will be displayed.
public TBuilder Input(bool enabled)
The value that enables or disables the input element
Returns:TBuilder
Configures the messages.
public TBuilder Messages(Action<PageableMessagesBuilder> configurator)
The value that configures the responsive.
Returns:TBuilder
If set to true the user could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.
public TBuilder Navigatable(bool value)
The value that configures the navigatable.
Returns:TBuilder
Defines if the numeric portion of the pager will be shown.
public TBuilder Numeric(bool enabled)
The value that determines whether the numeric section will be shown
Returns:TBuilder
Sets the page sizes of the grid.
public TBuilder PageSizes(bool enabled)
A value indicating whether to enable the page sizes dropdown
Returns:TBuilder
Sets the page sizes of the grid.
public TBuilder PageSizes(IEnumerable pageSizes)
The values shown in the pageSize dropdown
Returns:TBuilder
Defines if the Previous and Next buttons will be displayed.
Defines if a refresh button will be displayed.
public TBuilder Refresh(bool enabled)
The value that enables or disables the refresh button
Returns:TBuilder
If set to false the pager will not be responsive. By default the pager is responsive.
public TBuilder Responsive(bool enabled)
The value that configures the responsive.
Returns:TBuilder