DHTMLX Docs & Samples Explorer

clearAll(header)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid.js

deletes all rows in grid

  • header - (boolean) enable/disable cleaning header

Function which only refreshes grid:

   //delete all rows from the grid
   mygrid.clearAll();
   //delete all rows from the grid, clear header
   grid.clearAll(true);

See also: clearAndLoad, updateFromXML