count Returns: int


Return the number of records presented on the screen.

Examples

  
Edit this example
<button id="btnShowCount">Show Count</button> <br/><br/> <table id="grid"></table> <script> var grid = $("#grid").grid({ dataSource: "../Grid/GetPlayers", columns: [ { field: "ID" }, { field: "Name" }, { field: "PlaceOfBirth" } ] }); $("#btnShowCount").on("click", function () { alert(grid.count()); }); </script>