We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Enable Persistence issue with newly added columns on Grid

We are hoping to make use of the EnablePersistence() feature on the Grid control. However, it is common for the columns in our Grids to change regularly. We have noticed that when persistence is enabled and we add a column to the Grid, that the newly added column does not show unless we disable the persistence.

We have seen on another forum post that it is possible to delete parts of the JSON persistence file in Javascript, but we believe if we do that other persisted attributes will also be deleted, notably the column widths. Is it possible to manipulate the persistence storage file so that it keeps all persisted columns and values, but adds/removes newly created/deleted columns from it?

Thanks :)

1 Reply

RS Rajapandiyan Settu Syncfusion Team January 26, 2023 11:45 AM UTC

Hi Rob,

Thanks for contacting Syncfusion support.

The Newly added columns are properly persisted when refreshing the browser. Please find the sample for your reference.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/mvc_grid_enablePersistence221770391.zip

However, if your requirement is different and you don't want to persist the newly added column while refreshing the browser, please let us know in detail so that we can understand your requirement better and assist you further.

Rajapandiyan S

Live Chat Icon For mobile
Up arrow icon