dataBound
Event fires after the loading of the data in the grid.
Parameters
Name | Type | Description |
---|---|---|
e | {object} | event data |
records | {array} | the list of records received from the server |
totalRecords | {int} | the number of the all records that can be presented in the grid |
Examples
<table id="grid"></table>
<script>
var grid = $("#grid").grid({
dataSource: "../Grid/GetPlayers",
columns: [ { field: "ID" }, { field: "Name" }, { field: "PlaceOfBirth" } ]
});
grid.on("dataBound", function (e, records, totalRecords) {
alert("dataBound is fired. " + records.length + " records are bound to the grid.");
});
</script>