clear Returns: void


Clear the content in the grid.

Examples

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