ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: jim.monte@shields-e.us on April 02, 2014, 06:52:13 pm

Title: Quickest way to remove all rows from grid..
Post by: jim.monte@shields-e.us on April 02, 2014, 06:52:13 pm
What is the quickest way to remove all rows from grid without an ajax call for no records...   If I have a table with 1000 rows and I just want to clear the grid to 0 rows by a click of a button...
Title: Re: Quickest way to remove all rows from grid..
Post by: paramvir on April 02, 2014, 06:59:30 pm
Code: [Select]
$grid.pqGrid( 'option', 'dataModel.data', [] );
$grid.pqGrid( 'refreshView' );
Title: Re: Quickest way to remove all rows from grid..
Post by: jim.monte@shields-e.us on April 02, 2014, 07:02:44 pm
Perfect!!! Thank you Sir!!