Our blazing fast Grid component built with pure JavaScript


Post by marko »

Hi, is it possible to ignore certain columns when saving the grid state?
Some columns should be hidden based on certain app settings but if the grid state is saved columns aren't hidden if the app setting changes because they are saved as not hidden in the state.

Basically, I want them to always have the config I provide when initializing the Grid.


Post by marcio »

Hey marko,

Yes, it's possible, please check this guide to understand how to configure a custom saving for the grid state https://bryntum.com/products/grid/docs/api/Core/mixin/State#persistent-state

Best regards,
Márcio


Post by marko »

Hi Marcio,

how would that work in React? I tried to figure out a way to do it but had no luck so far


Post by alex.l »

There are 2 options.

  1. You can edit state config before save it and remove that you want.
  2. You can omit id property for columns you don't want to save, so when re-create an app, id will be auto generated and state won't be applied because different id.

All the best,
Alex


Post Reply