Author Topic: Save State Name  (Read 1965 times)

omerix

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 147
    • View Profile
Save State Name
« 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?


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Save State Name
« Reply #1 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

omerix

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 147
    • View Profile
Re: Save State Name
« Reply #2 on: June 08, 2017, 11:06:51 am »
Thank you. Fixed.