w2grid.clear

Removes all records from the grid.
clear([noRefresh])
noRefresh boolean, indicates if to refresh the grid after reset
Returns undefined.

Description

Removes all records from the .records array, resets .total and .buffered properties and refreshes the grid. If you have grid defined in the following way: You can remove all records:

See Also

.reset()
.searchReset()

User Comments

comments powered by Disqus