Ask for help related to our 2.x versions.

Post by nils.c »

Hi,

we use your example Gantt & Scheduler newest online version /demo and just set stateful for the scheduler and gantt to true. The zoomlevel and the other settings are not persistend. Can you explain, how to make the example stateful? On single gantt examples, its running without problems.

Best

Nils

Post by mats »

Hmm, is zoom not persisted in any of the components in your gantt+scheduler sample?

Post by nils.c »

No, it's not. By the way, your example! ;) We tried to use just your code of the online example and its not.

Best

Nils

Post by mats »

Are you setting id's on the components?

Post by nils.c »

Yes, i did.

The example is attached.
Attachments
gantt-scheduler_NC2.zip
(36.62 KiB) Downloaded 181 times

Post by nils.c »

Any idea?

Post by mats »

I don't see you registering any StateProvider anywhere? See the docs for guidance.

http://docs.sencha.com/extjs/4.1.3/#!/a ... ieProvider

Post by nils.c »

Sorry, uploaded the wrong version. Attached is a version with the state provider. The cookies get set, but the state is not restored.
Attachments
gantt-scheduler_last.zip
(36.65 KiB) Downloaded 217 times

Post by mats »

You're calling this too late. Put it at the top of your app.js file instead.
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());

Post by nils.c »

Thanks, that worked!

Post Reply