Results 1 to 10 of 10

Thread: EXT 4.0.2a CheckboxModel bug

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1

    Default EXT 4.0.2a CheckboxModel bug

    Steps to recreate from Desktop Example:


    1. add an 'Ext.selection.CheckboxModel' to the grid in the Grid Window
    2. Close the window
    3. 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.

  2. #2

    Post

    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

  3. #3

    Default

    any progress in solving this issue?

  4. #4
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    This issue has been resolved in one of the patch releases.

  5. #5

    Default

    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

  6. #6
    Sencha User
    Join Date
    Aug 2011
    Posts
    6

    Default

    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.

  7. #7
    Sencha User
    Join Date
    Aug 2011
    Posts
    6

    Default

    Quote Originally Posted by evant View Post
    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?

  8. #8

    Default

    Quote Originally Posted by jamesk View Post
    Which patch release? I've migrated to 4.0.7 and I'm still getting this bug.
    same here

  9. #9
    Sencha User
    Join Date
    Oct 2009
    Location
    Netherlands
    Posts
    1

    Exclamation Same

    I get a similar error on Ext 4.0.7 after reopening a window which contains a grid with a selectionmodel:

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

  10. #10
    Sencha User
    Join Date
    Feb 2008
    Posts
    20

    Default Fixed

    It appears this problem goes away if you define the selModel inside Ext.apply within the constructor. So for me, this produced the error:


    Code:
    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:


    Code:
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •