Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ej2-javascript/grid/state-persistence/add-to-persist.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: Add to persist in ##Platform_Name## Grid control | Syncfusion
description: Learn here all about Add to persist in Syncfusion ##Platform_Name## Grid control of Syncfusion Essential JS 2 and more.
description: Learn here all about Add to persist in ##Platform_Name## Grid control of Syncfusion Essential JS 2 and more.
platform: ej2-javascript
control: Add to persist
publishingplatform: ##Platform_Name##
Expand All @@ -13,7 +13,7 @@ domainurl: ##DomainURL##

## Persist the column template, header template and header Text

By default, the Grid properties such as column template, header text, header template, column formatter, and value accessor will not persist when [enablePersistence](../../api/grid/#enablepersistence) is set to true. Because the column template and header text can be customized at the application level.
By default, the Grid properties such as column template, header text, header template, column formatter, and value accessors will not persist when [enablePersistence](../../api/grid/#enablepersistence) is set to true. Because the column template and header text can be customized at the application level.

If you wish to restore all these column properties, then you can achieve it by cloning the grid’s columns property using JavaScript Object’s assign method and storing this along with the persist data manually. While restoring the settings, this column object must be assigned to the grid’s columns property to restore the column settings as demonstrated in the following sample.

Expand Down