PDA

View Full Version : Stateful grid errors - undefined method & checkbox state



hermann.s
28 Mar 2014, 9:57 AM
I managed to create a stateful grid the following way :


Ext.define('MCS.view.task.Mygrid', {
alias: 'widget.myGrid',

itemId: 'myGrid',
stateId: 'myGrid',

stateful: true,
stateEvents: ['filterchange', 'columnhide', 'columnmove', 'columnresize', 'columnshow', 'sortchange'],
});


Almost everything is fine except for two things.
Clicking on the column header to reveal the column dropdown for the filters/columns options gives me an error, ( although other than that it seems to work fine ).

The error.

Uncaught TypeError: undefined is not a function ext-dev.js:19131
Ext.define.getPoint ext-dev.js:19131
Ext.define.handleMouseDown DragDrop.js:810
Base.implement.callParent ext-dev.js:6912
Ext.define.handleMouseDown DragSource.js:333
(anonymous function) VM37575:6
wrap ext-dev.js:16730

Also, although the grid state is persistent across page loads, the checkboxes do not correspond to the columns that should be displayed : all of them are checked, regardless of whether some of the columns are not displayed because they were not checked before the page load.

Any help on this?

hermann.s
2 Apr 2014, 3:42 AM
Still need help with this, please.

Gary Schlosberg
2 Apr 2014, 11:17 AM
In which version of ExtJS are you seeing this issue?
http://www.sencha.com/forum/showthread.php?183996

hermann.s
3 Apr 2014, 4:13 AM
Ext.getVersion().version returns "4.2.0.663"

Update on this :
It seems like the checkboxes are only reset when a filter is set on one of the columns.
Otherwise it works fine.

hermann.s
7 Apr 2014, 2:42 AM
Anyone able to help me with this?