ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: wstewart on November 12, 2020, 05:06:59 am

Title: Get the obj from the grid
Post by: wstewart on November 12, 2020, 05:06:59 am
Hi
Is there a function that returns the obj object that belongs to the grid.
The variable obj that was used to initialise seems to update most of the time ok
But occasionally it doesnt. So i was wondering if there is a function like
pqGrid. getObj() to make sure i am accessing the current version. I ve been experimenting
Dumping a json string representing obj.
Thanks.
Title: Re: Get the obj from the grid
Post by: paramvir on November 12, 2020, 06:45:20 am
It's available as grid.options where grid is js instance.

Code: [Select]
var grid = $grid.pqGrid('instance'), obj = grid.options;
Title: Re: Get the obj from the grid
Post by: wstewart on November 13, 2020, 01:12:32 am
Thanks - much better - I can restore. via JSON, all my data and headers etc and all I am now missing is the class information that I added to a particular cell.