1

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!

2
  • localStorage? Jul 13, 2018 at 12:13
  • @AlekseySolovey Good answer! I found an attribute named stateStoring on their documentations that do localStorage's job.
    – OMID
    Jul 13, 2018 at 12:23

2 Answers 2

2

Add this to grid Config:

stateStoring: {
   enabled: true
}
0

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+

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.