Jan 19, 2018, 8:55 AM
[CLOSED] Stateful grid
Hello guys
I originally tried to reproduce other issue using your examples (see bottom of email about the details)
but I face another strange behavior that I would like to ask:
take this example
https://examples4.ext.net/#/GridPane...l/Reconfigure/
and just make grid statefull:
The grid does not become statefull for some reason
Can you explain why please ( if I reoder columns they will stay, if I hide or resize column it will stay after page refresh)
Note that my original issue is about having statefull grid ( in my project and it really works) and after state is loaded I have problem adding dynamic columns on runtime
Thanks
Jiri
I originally tried to reproduce other issue using your examples (see bottom of email about the details)
but I face another strange behavior that I would like to ask:
take this example
https://examples4.ext.net/#/GridPane...l/Reconfigure/
and just make grid statefull:
Stateful="True"
StateID="SampleStateId"
The grid does not become statefull for some reason
Can you explain why please ( if I reoder columns they will stay, if I hide or resize column it will stay after page refresh)
Note that my original issue is about having statefull grid ( in my project and it really works) and after state is loaded I have problem adding dynamic columns on runtime
var column = Ext.create('Ext.grid.column.Column', { text: 'Name', dataIndex: 'index' });
this.headerCt.insert(this.columns.length + i, column);
this.columns.push(column); // <- this is problematic line. columns does not have push method, its basically object with h1 - h10 proeprties}
Feel free to ignore this note in this thread, just in case you see immediatelly I'm doing something wrong or not doable you can let me know now. otherwise I will try to setup reproducible example for you, once I understand whats wrong with grid on topThanks
Jiri