destroying
Event fires when the grid.destroy method is called.
Parameters
| Name | Type | Description | 
|---|---|---|
| e | {object} | event data | 
Examples
  
  <button id="btnDestroy">Destroy</button>
 <br/><br/>
 <table id="grid"></table>
 <script>
     var grid = $("#grid").grid({
         dataSource: "../Grid/GetPlayers",
         columns: [ { field: "ID" }, { field: "Name" }, { field: "PlaceOfBirth" } ]
     });
     grid.on("destroying", function (e) {
         alert('destroying is fired.');
     });
     $('#btnDestroy').on('click', function() {
         grid.destroy();
     });
 </script>