Reputation: 2739
How can i save or cache selected columns in devextreme datagrid for each user? by cookie, session, in database or anything else...! the problem is users select what they want or need but by page reloading everything will reset!
Upvotes: 1
Views: 1380
Reputation: 5452
If you use Angular Js
, you need add this code to config as below
stateStoring: {
enabled: true
}
If you store data in localStorage
stateStoring: {
enabled: true,
type: "localStorage",
storageKey: "storage"//This is localStorage's item key
}
For more information, please visit this link Devextreme Datagrid State Persistence in Angular Js
If you use Angular 2+
, you can use dxo-state-storing
component.For more information, please visit this link : Devextreme Datagrid State Persistence in Angular 2+
Upvotes: 0