dataBinding
Event fired before data binding takes place.
Parameters
Name | Type | Description |
---|---|---|
e | {object} | event data |
records | {array} | the list of records received from the server |
Examples
<table id="grid"></table>
<script>
var grid = $("#grid").grid({
dataSource: "../Grid/GetPlayers",
columns: [ { field: "ID" }, { field: "Name" }, { field: "PlaceOfBirth" } ]
});
grid.on("dataBinding", function (e, records) {
alert("dataBinding is fired. " + records.length + " records will be loaded in the grid.");
});
</script>