如何在剃刀中更改kendo网格的可分页消息?

Mus*_*faP 3 javascript asp.net-mvc razor kendo-ui kendo-grid

我在javascript中发现但我无法做到这一点.
谁能说剃须刀中的"显示"怎么样?

pageable: {
    messages: {
        display: "{0} - {1} of {2} items", //{0} is the index of the first record on the page, {1} - index of the last record on the page, {2} is the total amount of records
        empty: "No items to display",
        page: "Page",
        of: "of {0}", //{0} is total amount of pages
        itemsPerPage: "items per page",
        first: "Go to the first page",
        previous: "Go to the previous page",
        next: "Go to the next page",
        last: "Go to the last page",
        refresh: "Refresh"
    }
}
Run Code Online (Sandbox Code Playgroud)

剃刀视图

.Pageable(??)
Run Code Online (Sandbox Code Playgroud)

Voj*_*iik 10

看看这里.

   @(Html.Kendo().Grid(Model)
        .Name("grid")
        .Pageable(pager => pager
            .Messages(messages => messages.Display("Showing items from {0} to {1}. Total items: {2}"))
        )
        .DataSource(dataSource => dataSource
            .Ajax() // or Server()
            .Read(read => read.Action("Products_Read", "Home"))
        )
     )
Run Code Online (Sandbox Code Playgroud)