Hello! I want to save the state of a checkbox (wether it's checked or not).
I got this far:
Code:
Ext.onReady(function()
{
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
this.MyBox = new Ext.form.Checkbox(
{ id: 'MyUniqueBoxId',
boxLabel: 'My checkbox',
stateful: true,
stateEvents: ['click', 'change', 'check', 'hide', 'show']
});
...
The Box is used as an additional item in a PagingToolbar. I do:
- load the page
- check the box
- reload the page -> the box is unchecked
Shouldn't it still be checked? What could be the problem? Did I miss something?