dataBinding


Event fired before data binding takes place.

Parameters

NameTypeDescription
e {object} event data
records {array} the list of records received from the server

Examples

  
Edit this example
<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>