1. #1
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default Ext.all.js error on Grid header mouse over

    Ext.all.js error on Grid header mouse over


    I got this error on a grid. If you mouse over the first column you get these errors:

    Code:
    TypeError: Result of expression 'this.config[col]' [undefined] is not an object.
    
     at app:/extjs/ext-all-debug.js : 66514
    
     at app:/extjs/ext-all-debug.js : 65707
    
    h at app:/extjs/ext-all-debug.js : 2646
    
    undefined at undefined : undefined
    Line 66514 deals with if the menu is disabled or not.

    So when the grid executes the handleHdOver() function the error is what fly.getRegion() returns. For column index zero it returns false instead.

    I fixed this by adding this line but not sure if there is a better way:

    Code:
    this.activeHdIndex = Number(this.activeHdIndex);
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  2. #2
    Sencha User makana's Avatar
    Join Date
    Apr 2008
    Location
    Dresden, Germany
    Posts
    527
    Vote Rating
    20
    makana has a spectacular aura about makana has a spectacular aura about

      0  

    Default


    That's not an AIR specific issue. That's a problem which exists already for a long time. Just give your first column an id and that's it.
    Programming today is a race between software engineers striving to build bigger and better Ń–diot-proof programs, and the universe striving to produce bigger and better idiots. So far, the universe is winning. (Rick Cook)

    Enhanced ExtJS adapter for Adobe AIR

Thread Participants: 1