Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Federico on Oct 27, 2007 12:34
open dhtmlx forum
Delete Rows - ClearAll()

I need delete all the rows and keep the headers of the grid, I try to use the clearAll() function but this delete also the headers. There is a way to delete all the rows in the grid but keeping the grid structure?
Answer posted on Oct 29, 2007 07:20
grid.clearAll can be used for both tasks

gridl.clearAll() - delete data, but headers and settings untouched
grid.clearAll(true) - delete all, including headers