Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Mar 2007
    Posts
    174
    Vote Rating
    1
    mike1993 is on a distinguished road

      0  

    Exclamation TreePanel: cannot use w/ simple TreeStore with compatibility layer

    TreePanel: cannot use w/ simple TreeStore with compatibility layer


    TreePanel fails to render w/ compatibility layer on.

    Ext version tested::
    • 4.2.0 (663)

    Operating System:
    • Windows 7

    Browser versions tested against:
    • Firefox 21.0
    • Firebug 1.11.2

    Description:
    I am in the process of Ext JS 3 to 4 migration and main widget is using TreePanel.
    The code is failing on
    Code:
    TypeError: proxy is undefined	
      if (proxy.isProxy) {
    Steps to reproduce:
    • Run sample code from docs

    Test case:
    Code:
    Ext.onReady(function() {
      var store = Ext.create('Ext.data.TreeStore', {
        root: {
          expanded: true,
          children: [{
            text: "detention",
            leaf: true
          },{
            text: "homework",
            expanded: true,
            children: [{
              text: "book report",
              leaf: true
            },{
              text: "algebra",
              leaf: true
            }]
          },{
            text: "buy lottery tickets",
            leaf: true
          }]
        }
      });
    
      Ext.create('Ext.tree.Panel', {
        title: 'Simple Tree',
        width: 200,
        height: 150,
        store: store,
        rootVisible: false,
        renderTo: Ext.getBody()
      });
    });

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,062
    Vote Rating
    215
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    The compatibility layer may not be the best toolset for migrating from 3.x to 4.2 as it's not updated to work directly with 4.2.

    If you're having trouble with some 4.2 code, though, if you can post those issues you're having I and the community would be happy to help you iron out wrinkles.

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2007
    Posts
    174
    Vote Rating
    1
    mike1993 is on a distinguished road

      0  

    Default


    Thanks. I can work around the issue by disabling Tree component in my widgets for now.
    (It's part of generic component where only grid config changes). As soon as all breaking changes are fixed, I'll remove compatibility libs.

Thread Participants: 1