ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: mikep on May 18, 2020, 08:49:15 pm
-
https://jsfiddle.net/q1fnmtr0/1/
On the example above, if I click Refresh0 and then Refresh1, why do the checkboxes disappear?
-
It's because Refresh0 is incorrect way to refresh a grid. Grid constructor can't be called again once the grid is initialized.
-
is there a way to remove the grid from memory, so that I can recall the constructor and re-initialize? When I call refreshdataandview, I lose the checkboxes in my app (I cannot recreate this in JSFiddle yet). So maybe re-initializing will get around this.
-
For that you would need to destroy the grid.
https://paramquery.com/pro/api#method-destroy
-
That works great. Thank You.