ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: omerix on June 07, 2017, 05:05:11 pm

Title: Save State Name
Post by: omerix on June 07, 2017, 05:05:11 pm
"A.asp" I record the placement on the page. Later. "B.asp" I record the placement on the page. When I return the "a.asp" page, the layout changes.

How can I point to different places on each page?

Title: Re: Save State Name
Post by: paramvir on June 07, 2017, 11:02:19 pm
The grid state is saved as key name of  "pq-grid"+(id of grid) in the local storage, so every grid has a single unique state.

If you need to store number of states corresponding to a single grid, then you can do it yourself by calling

Code: [Select]
localStorage.setItem("some key name" , grid.saveState( false) );

https://paramquery.com/pro/api#method-saveState
Title: Re: Save State Name
Post by: omerix on June 08, 2017, 11:06:51 am
Thank you. Fixed.