View Full Version : TreePanel: cannot use w/ simple TreeStore with compatibility layer

25 Apr 2013, 5:48 AM
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

I am in the process of Ext JS 3 to 4 migration and main widget is using TreePanel.
The code is failing on

TypeError: proxy is undefined
if (proxy.isProxy) {

Steps to reproduce:

Run sample code from docs

Test case:

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()

25 Apr 2013, 11:35 AM
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.

14 May 2013, 7:05 AM
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.