Results 1 to 2 of 2

Thread: [4.0.7] Error on bind Store if view is not rendered

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-4312 in a recent build.
  1. #1
    Sencha User
    Join Date
    May 2011
    Location
    Belgium
    Posts
    16

    Default [4.0.7] Error on bind Store if view is not rendered

    [4.0.7] Error on bind Store if view is not rendered

    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.0.7

    Browser versions tested against:

    • FF3 (firebug 1.3.0.10 installed)

    Description:

    Call bindStore on a Grid View not yet rendered generate an error.
    The error occurs into the RowModel :
    Code:
    onLastFocusChanged: function(oldFocused, newFocused, supressFocus) {         var views   = this.views, 
                viewsLn = views.length, 
                store   = this.store, 
    
                rowIdx, 
                i = 0; 
    ...
    Error : views is undefined

  2. #2
    Sencha User
    Join Date
    Dec 2010
    Posts
    79

    Default

    Hackish Bugfix:

    PHP Code:
    Ext.override(Ext.selection.RowModel, {    onLastFocusChanged: function(oldFocusednewFocusedsupressFocus) {        if (this.views && this.views.length) {            this.callOverridden(arguments);        }    },    onSelectChange: function(recordisSelectedsuppressEventcommitFn) {        if (this.views && this.views.length) {            this.callOverridden(arguments);        }    }    }); 

Posting Permissions

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