-
14 Sep 2012 6:48 AM #1
[4.1.2] Unable to sort tree node in an un-rendered tree
[4.1.2] Unable to sort tree node in an un-rendered tree
"ext-all-debug.js:96394TypeError: 'undefined' is not an object (evaluating 'me.el.child')"
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: "alegrbra", leaf: true} ] }, { text: "buy lottery tickets", leaf: true } ] } }); var tree = Ext.create('Ext.tree.Panel', { title: 'Simple Tree', width: 200, height: 150, store: store, rootVisible: false, store: store }); //tree.render(Ext.getBody()); tree.getRootNode().sort(function(n1, n2) { var v1 = n1.data['text'].toUpperCase(); var v2 = n2.data['text'].toUpperCase(); if (v1 < v2) return -1; else if (v1 > v2) return 1; return 0; }); });
-
19 Sep 2012 11:20 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,710
- Vote Rating
- 436
This has been fixed for 4.1.3
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-7248
in
4.1.3 Sprint 1.


Reply With Quote