Discuss anything related to web development but no technical support questions


Post by jandresampaio »

Posted in this thread following the previous comment from VijaySM:

"Can we make it stateful, so it can remember the previous columns selection?
I tried using stateful parameter set to true but no success."

Post by Terence »

I am not able to reproduce this in our example. I added a column and its state is kept. We need a runnable testcase to help you out.

Post by jandresampaio »

Sorry, can you point us to that example ?
Problem here is when refreshing the page...column selection list will always be empty after refresh/reentering Gantt component.
We've just added 'Gnt.plugin.Printable' to the Gantt plugins array.

Thank you.

Post by Terence »

Just take one of our examples and provide us the steps how the reproduce. I used the print example and added some extra columns.

https://www.bryntum.com/examples/gantt- ... les/print/

You can take this example as a base.

Post by jandresampaio »

The problem is that, using Angular, the column id's are always changing. Your demo keeps the locked grid columns id between refreshes.

You can check attached image what id I'm talking....
This way, the columns selection state is never stored. Only the other settings, like Visible Schedule, etc...

How can we prevent this ??
Attachments
GanttColumnIdChangesInAngular.PNG
GanttColumnIdChangesInAngular.PNG (396.25 KiB) Viewed 3534 times

Post by Terence »

You can use the stateId and set it on the columns:
https://docs.sencha.com/extjs/6.5.3/cla ... fg-stateId

If that is not working, then please provide a runnable example.

Post Reply