ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: mikep on May 18, 2020, 08:49:15 pm

Title: Refresh Grid and Checkboxes disappearing
Post 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?
Title: Re: Refresh Grid and Checkboxes disappearing
Post by: paramvir on May 19, 2020, 09:08:03 am
It's because Refresh0 is incorrect way to refresh a grid. Grid constructor can't be called again once the grid is initialized.
Title: Re: Refresh Grid and Checkboxes disappearing
Post by: mikep on June 03, 2020, 09:25:39 pm
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.
Title: Re: Refresh Grid and Checkboxes disappearing
Post by: paramvir on June 03, 2020, 09:37:05 pm
For that you would need to destroy the grid.

https://paramquery.com/pro/api#method-destroy
Title: Re: Refresh Grid and Checkboxes disappearing
Post by: mikep on June 04, 2020, 12:07:19 am
That works great. Thank You.