Persistent grid losing it's value after browser close/tab close

I've enabled persistence on grid. It is working fine for most of users. but for few users it is not holding value in localstorage. Please assist


1 Reply

AR Aishwarya Rameshbabu Syncfusion Team October 30, 2024 12:11 PM UTC

Hi Mahesh Machina,


Greetings from Syncfusion support.


Based on the provided information, it appears that some users are encountering issues with persisting Grid data upon closing the browser or tab, while others are not.


To address this, please ensure that the affected users have their browsers configured to permit local storage. In some cases, settings in private browsing, browser extensions, or security policies may cause local storage to be automatically cleared or blocked, preventing persistence. Additionally, if local storage limits are reached (generally 5MB per origin), data may fail to save. If any errors appear in the browser console while interacting with the grid, please note them as they could indicate storage-related issues.


If the issue persists, kindly share the following details to help us further investigate:


  1. How are you managing persistence? Are you altering the Grid ID or manually setting the storage key for different users via getItem and setItem methods in window.localStorage?
  2. Scenario details: Describe the specific scenario or sequence of actions that replicates the issue.
  3. Grid rendering code: Provide the complete Grid rendering code, including event handler functions and templates used.
  4. Data binding type: Specify if you are using remote or local data, and if remote, include details about the adaptor.
  5. Syncfusion package version: Indicate the package version in use.
  6. Replication sample and video: If possible, provide a sample project that replicates the issue and a video to demonstrate the steps.


For further information, please refer to the State Persistence in Grid documentation.


State Persistence in Grid



Regards

Aishwarya R


Loader.
Up arrow icon