Results 1 to 4 of 4

Thread: Renderer scope is lost in Ext.tree.Column mixin

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-17975 in 5.1.2.
  1. #1
    Sencha Premium Member ragzovskii's Avatar
    Join Date
    Sep 2012
    Location
    Krasnoyarsk, Russia
    Posts
    242

    Default Renderer scope is lost in Ext.tree.Column mixin

    Ext version tested:
    • Ext 5.1.1 (bug)
    • Ext 5.1.0 (works ok)
    Browser versions tested against:
    • Chrome 43
    Description:
    • We have a mixin for columns that describes some common behavior: renderer for column and scope for renderer. Worked fine in ext 5.1.0, but in 5.1.1 scope in mixin is lost, now it's window instead of column instance. Same mixin for grid column works fine

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,748

    Default

    Can you try this?

    Code:
        Ext.define('Ext.patch.tree.Column', {
            override: 'Ext.tree.Column',
        
            initComponent: function () {
                var scope = this.scope;
    
                this.callParent();
    
                this.rendererScope = this.rendererScope || scope; // set incorrectly in some cases
            }
        });
    Don Griffin

    "Use the source, Luke!"

  4. #4
    Sencha Premium Member ragzovskii's Avatar
    Join Date
    Sep 2012
    Location
    Krasnoyarsk, Russia
    Posts
    242

    Default

    This is my exact workaround and yes, it works for me

Similar Threads

  1. ExtJs Column Renderer Scope Question
    By FanOfExt in forum Ext: Discussion
    Replies: 5
    Last Post: 6 Feb 2014, 8:01 PM
  2. Replies: 1
    Last Post: 13 Sep 2011, 6:11 AM
  3. column Renderer scope issue
    By abhaykulkarni16 in forum Ext 3.x: Help & Discussion
    Replies: 8
    Last Post: 17 Apr 2011, 2:26 AM

Tags for this Thread

Posting Permissions

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