Fired when the user is about change the current page index of DataSource via the pager UI.
The event handler function context (available via the this
keyword) will be set to the widget instance.
Introduced in the Kendo UI 2016 R3 (2016.3.914) release.
Event Data e.pageNumber
The selected page index.
e.preventDefaultFunction
If invoked prevents applying the changes to the DataSource.
e.senderkendo.ui.Grid
The widget instance which fired the event.
Example - subscribe to the "page" event during initialization<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "name" },
{ field: "age" }
],
dataSource: {
data: [
{ id: 1, name: "Jane Doe", age: 30 },
{ id: 2, name: "John Doe", age: 33 }
],
pageSize: 1,
schema: {
model: { id: "id" }
}
},
pageable: true,
page: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(e.page);
}
});
</script>
Example - subscribe to the "page" event after initialization
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "name" },
{ field: "age" }
],
dataSource: {
data: [
{ id: 1, name: "Jane Doe", age: 30 },
{ id: 2, name: "John Doe", age: 33 }
],
pageSize: 1,
schema: {
model: { id: "id" }
}
},
pageable: true
});
var grid = $("#grid").data("kendoGrid");
grid.bind("page", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(e.page);
});
</script>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4