PageableMessagesBuilder
Methods
AllPages(System.String)
The text message displayed in the Pager for the AllPages option.
Parameters
message - System.String
The message text for the AllPages option
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.AllPages("All pages")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
Display(System.String)
The text message displayed in the Pager. Contains three placeholders - {0} (the first data item index), {1} (the last data item index), {2} (the total number of data items).
Parameters
message - System.String
The pager info text.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.Display("Showing {0}-{1} from {2} data items")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
Empty(System.String)
The text displayed in the Pager when the grid is empty.
Parameters
message - System.String
The Pager info text when the Grid is empty.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.Empty("No data")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
Page(System.String)
The label displayed before the pager input.
Parameters
message - System.String
The text of the label displayed before the pager input.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.Page("Enter page")).Input(true))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
Of(System.String)
The label displayed before the pager input. Contains one optional placeholder {0} which represents the total number of pages.
Parameters
message - System.String
The text for the label displayed before the pager input.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.Of("from {0}")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
ItemsPerPage(System.String)
The label displayed after the page size DropDownList.
Parameters
message - System.String
The text for the label displayed after the page size DropDownList.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.ItemsPerPage("data items per pagee")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
First(System.String)
The tooltip of the button which goes to the first page.
Parameters
message - System.String
The tooltip text of the Go to the fisrt page button.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.First("First page")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
Previous(System.String)
The Tooltip of the button which goes to the previous page.
Parameters
message - System.String
The text for the Tooltip of the button which goes to the previous page.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.Previous("Previous page")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
Next(System.String)
The Tooltip of the button which goes to the next page.
Parameters
message - System.String
The Tooltip text message of the button which goes to the next page.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.Next("Next page")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
Last(System.String)
The tooltip of the button which goes to the last page.
Parameters
message - System.String
The tooltip text of the Go to the last page button.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.Last("Last page")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
Refresh(System.String)
The Tooltip of the refresh button.
Parameters
message - System.String
The text for the Tooltip of the refresh button.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.Refresh("Refresh the grid")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
MorePages(System.String)
The Tooltip of the ellipsis ("...") button, which appears when the number of pages is greater than the buttonCount.
Parameters
message - System.String
The tooltip text of the ellipsis button, which appears when the number of pages is greater than the buttonCount.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.MorePages("More pages")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
PageButtonLabel(System.String)
The Tooltip that is showing when hover on a page in the pager. The {0} parameter stands for the page number hovered.
Parameters
message - System.String
The text of the Tooltip that is showing when hover on a page in the pager.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.PageButtonLabel("page {0}")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
NumbersSelectLabel(System.String)
The label applied to the Pager select element (when visible).
Parameters
value - System.String
The label text.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.NumbersSelectLabel("select page")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
PageSizeDropDownLabel(System.String)
The label applied to the page size dropdown.
Parameters
value - System.String
The label text.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Pageable(p => p.Messages(m => m.PageSizeDropDownLabel("page sizes")))
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)