PagerBuilder
Methods
AdaptiveMode(Kendo.Mvc.UI.AdaptiveMode)
Specifies a value whether the page sizes dropdown will be adaptive
Parameters
value - AdaptiveMode
The value that configures the adaptivemode.
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 that configures the 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
value - System.String
The value that configures the ariatemplate.
ARIATemplateView(System.Web.Mvc.MvcHtmlString)
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.Web.Mvc.MvcHtmlString
The value that configures the ariatemplate.
ARIATemplateHandler(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 that configures the ariatemplate.
ARIATemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
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
template - TemplateBuilder<TModel>
A Template component that configures the ariatemplate.
AutoBind(System.Boolean)
Indicates whether the pager refresh method will be called within its initialization.
Parameters
value - System.Boolean
The value that configures the autobind.
ButtonCount(System.Double)
Defines the number of buttons displayed in the numeric pager.
Parameters
value - System.Double
The value that configures the buttoncount.
SelectTemplate(System.String)
The template for selected page number link.
Parameters
value - System.String
The value that configures the selecttemplate.
SelectTemplateId(System.String)
The template for selected page number link.
Parameters
value - System.String
The value that configures the selecttemplate.
SelectTemplateView(System.Web.Mvc.MvcHtmlString)
The template for selected page number link.
Parameters
value - System.Web.Mvc.MvcHtmlString
The value that configures the selecttemplate.
SelectTemplateHandler(System.String)
The template for selected page number link.
Parameters
value - System.String
The value that configures the selecttemplate.
SelectTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
The template for selected page number link.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the selecttemplate.
LinkTemplate(System.String)
The template for page number links.
Parameters
value - System.String
The value that configures the linktemplate.
LinkTemplateId(System.String)
The template for page number links.
Parameters
value - System.String
The value that configures the linktemplate.
LinkTemplateView(System.Web.Mvc.MvcHtmlString)
The template for page number links.
Parameters
value - System.Web.Mvc.MvcHtmlString
The value that configures the linktemplate.
LinkTemplateHandler(System.String)
The template for page number links.
Parameters
value - System.String
The value that configures the linktemplate.
LinkTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
The template for page number links.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the linktemplate.
Info(System.Boolean)
Defines if a label showing current paging information will be displayed.
Parameters
value - System.Boolean
The value that configures the info.
Input(System.Boolean)
Defines if an input element which allows the user to navigate to given page will be displayed. If enabled the numeric buttons for pages will not be rendered.
Parameters
value - System.Boolean
The value that configures the input.
Numeric(System.Boolean)
Defines if numeric portion of the pager will be shown.
Parameters
value - System.Boolean
The value that configures the 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 that configures the 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 that configures the refresh.
Responsive(System.Boolean)
Defines if the pager will be responsive.
Parameters
value - System.Boolean
The value that configures the responsive.
Messages(System.Action)
Defines texts shown within the pager. Use this option to customize or localize the pager messages.
Parameters
configurator - System.Action<PagerMessagesSettingsBuilder>
The action that configures the messages.
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 that configures the navigatable.
Size(Kendo.Mvc.UI.ComponentSize)
Sets the size of the component.
Parameters
value - ComponentSize
The value that configures the size.
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
enabled - System.Boolean
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.
Parameters
pageSizes - System.Collections.IEnumerable
DataSource(System.String)
Parameters
dataSourceId - System.String
Events(System.Action)
Configures the client-side events.
Parameters
configurator - System.Action<PagerEventBuilder>
The client events action.
Example
@( Html.Kendo().Pager()
.Name("Pager")
.Events(events => events
.Change("onChange")
)
)
ToComponent()
Returns the internal view component.
Name(System.String)
Sets the name of the component.
Parameters
componentName - System.String
The name of the component.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
Deferred(System.Boolean)
Suppress initialization script rendering. Note that this options should be used in conjunction with
Parameters
deferred - System.Boolean
ModelMetadata(System.Web.Mvc.ModelMetadata)
Uses the Metadata of the Model.
Parameters
modelMetadata - System.Web.Mvc.ModelMetadata
The metadata set for the Model
HtmlAttributes(System.Object)
Sets the HTML attributes.
Parameters
attributes - System.Object
The HTML attributes.
HtmlAttributes(System.Collections.Generic.IDictionary)
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
AsModule(System.Boolean)
Specifies whether the initialization script of the component will be rendered as a JavaScript module.
Parameters
value - System.Boolean
Render()
Renders the component.
Example
@(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
@( Html.Kendo().Grid(Model)
.Name("grid")
.DetailTemplate(product => {
)
Product Details:
<div>Product Name: @( product.ProductName )</div>
<div>Units In Stock: @( product.UnitsInStock )</div>
@(
})
.Render();
)
ScriptAttributes(System.Object,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Object
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.
ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.