ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
Quickest way to remove all rows from grid..
« previous
next »
Print
Pages: [
1
]
Author
Topic: Quickest way to remove all rows from grid.. (Read 5373 times)
[email protected]
Pro Deluxe
Newbie
Posts: 4
Quickest way to remove all rows from grid..
«
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...
Logged
paramvir
Administrator
Hero Member
Posts: 6310
Re: Quickest way to remove all rows from grid..
«
Reply #1 on:
April 02, 2014, 06:59:30 pm »
Code:
[Select]
$grid.pqGrid( 'option', 'dataModel.data', [] );
$grid.pqGrid( 'refreshView' );
Logged
[email protected]
Pro Deluxe
Newbie
Posts: 4
Re: Quickest way to remove all rows from grid..
«
Reply #2 on:
April 02, 2014, 07:02:44 pm »
Perfect!!! Thank you Sir!!
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
Quickest way to remove all rows from grid..