PDA

View Full Version : [CLOSED] EXT 4.0.2a CheckboxModel bug



dthemistokleous
25 Jul 2011, 11:37 AM
Steps to recreate from Desktop Example:



add an 'Ext.selection.CheckboxModel' to the grid in the Grid Window
Close the window
If you try to open the window again, you get an error stated below.

Error: "header is null" from javascript command 'delete header.width;'

Using FF5 with EXTJS 4.0.2a on a Windows 7 machine.

dthemistokleous
27 Jul 2011, 11:12 AM
Ext version tested:

Ext 4.0 rev 2a

Browser versions tested against:

FF5

Description:

Adding an 'Ext.selection.CheckboxModel' to any gridpanel will fail to display after you close the gridpanel and then attempt to reopen it. The checkboxes will not get displayed.

Steps to reproduce the problem:

Create a gridpanel with selModel: Ext.selection.CheckboxModel
Close the window associated with the gridpanel.
Attempt to reopen the window with the gridpanel.

The result that was expected:


Checkboxes will be displayed after you reopen the window with a gridpanel

The result that occurs instead:

First attempt to reopen causes "Error: "header is null" from javascript command 'delete header.width;'"
Second attempt to reopen will display the grid, but WITHOUT the checkbox on each row

Test Case:

not provided

Additional CSS used:

only default ext-all.css

Operating System:


Win 7

muselmanach
6 Oct 2011, 12:15 PM
any progress in solving this issue?

evant
6 Oct 2011, 5:01 PM
This issue has been resolved in one of the patch releases.

muselmanach
7 Oct 2011, 2:34 AM
i am using 4.0.2a and still get this bug, by closing and reopening a formpanel(that contains the checkboxmodel-grid) within a tabpanel

jamesk
14 Oct 2011, 11:23 AM
Please reopen this bug.

I'm running 4.0.6 and still encountering the same issue. When I add "selModel: Ext.create('Ext.selection.CheckboxModel')" to my grid in a window, it opens without issues the first time, but the second time some of the objects have been partially cleaned up, which ultimately leads to an exception in Ext.selection.CheckboxModel.toggleUiHeader (ext-all-debug line 88542) due to "checkHd.el" being undefined.

jamesk
1 Nov 2011, 10:10 AM
This issue has been resolved in one of the patch releases.

Which patch release? I've migrated to 4.0.7 and I'm still getting this bug. Could you post the patch?

muselmanach
1 Nov 2011, 11:47 AM
Which patch release? I've migrated to 4.0.7 and I'm still getting this bug.

same here

Yeroon
25 Nov 2011, 1:43 AM
I get a similar error on Ext 4.0.7 after reopening a window which contains a grid with a selectionmodel:



checkHd.el is undefined
checkHd.el.removeCls(this.checkerOnCls);

jump23
10 Dec 2011, 6:15 PM
It appears this problem goes away if you define the selModel inside Ext.apply within the constructor. So for me, this produced the error:



Ext.define('app.Grid',{
extend: 'Ext.grid.Panel',
selModel: Ext.create('Ext.selection.CheckboxModel'),
constructor: function(){
var grid = this;
Ext.apply(this,{
selModel: Ext.create('Ext.selection.CheckboxModel'),
store: store,
columns: [{
header: '',
sortable: true,
etc...


But this did not:



Ext.define('app.Grid',{
extend: 'Ext.grid.Panel',
constructor: function(){
var grid = this;
Ext.apply(this,{
selModel: Ext.create('Ext.selection.CheckboxModel'),
selModel: Ext.create('Ext.selection.CheckboxModel'),
store: store,
columns: [{
header: '',
sortable: true,
etc...


Hope that helps.