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<TBuilder> class.
Methods
Specifies a value whether the page sizes dropdown will be adaptive.
public TBuilder AdaptiveMode(AdaptiveMode adaptiveMode)
The value that configures the adaptive mode.
Returns:TBuilder
Returns the current TBuilder 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 TBuilder ARIATemplate(string template)
The value that configures the ariatemplate.
Returns:TBuilder
Returns the current TBuilder instance.
The template that renders the content of the aria-label attribute.
public TBuilder ARIATemplateHandler(string templateHandler)
The JavaScript function that will return the template content.
Returns:TBuilder
Returns the current TBuilder instance.
The id of the script element used for ARIATemplate
public TBuilder ARIATemplateId(string templateId)
The value that configures the ariatemplate.
Returns:TBuilder
Returns the current TBuilder instance.
The view template used for ARIATemplate
public TBuilder ARIATemplateView(IHtmlContent templateView)
The view that configures the ariatemplate.
Returns:TBuilder
Returns the current TBuilder instance.
Sets the number of buttons displayed in the numeric pager. Default is 10.
public TBuilder ButtonCount(int value)
The value
Returns:TBuilder
Returns the current TBuilder instance.
Enables or disables paging.
public TBuilder Enabled(bool value)
TBuilder
Returns the current TBuilder instance.
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
Returns the current TBuilder instance.
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
Returns the current TBuilder instance.
Configures the messages.
public TBuilder Messages(Action<PageableMessagesBuilder> configurator)
The value that configures the responsive.
Returns:TBuilder
Returns the current TBuilder instance.
If set to true the user could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.
public TBuilder Navigatable(bool enabled)
The value that configures the navigatable.
Returns:TBuilder
Returns the current TBuilder instance.
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
Returns the current TBuilder instance.
Sets the page sizes of the grid.
public TBuilder PageSizes(bool enabled)
A value indicating whether to enable the page sizes dropdown
Returns:TBuilder
Returns the current TBuilder instance.
Sets the page sizes of the grid.
public TBuilder PageSizes(IEnumerable pageSizes)
The values shown in the pageSize dropdown
Returns:TBuilder
Returns the current TBuilder instance.
Enables or disables the previous/next buttons.
public TBuilder PreviousNext(bool enabled)
TBuilder
Returns the current TBuilder instance.
Defines if a refresh button will be displayed.
public TBuilder Refresh(bool enabled)
The value that enables or disables the refresh button
Returns:TBuilder
Returns the current TBuilder instance.
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
Returns the current TBuilder instance.