Chris Lewold
Chris Lewold

Reputation: 91

Nattable FilterRow visibility state not saved

I use NatTable saveState/loadState logic in order to persist the current layout. This works nice, beside the visibility state of the filter row.

Is it correct, that FilterRowHeaderComposite should override saveState and loadState in order to persist filterRowVisible?

As a temp solution I implemented a subclass of FilterRowHeaderComposite, and implementing the load/save methods seems to work. I just want to know if I am on the correct path.

Upvotes: 0

Views: 14

Answers (1)

Dirk Fauth
Dirk Fauth

Reputation: 4231

You could also implement an IPersistable and register it on the FilterRowHeaderComposite. This basically gives you the option to save any additional state. And you don't need to create a subclass.

Upvotes: 0

Related Questions