http://www.sencha.com/forum/showthread.php?136118-Locked-columns-on-a-tree-panel
Locked columns on a tree panel
Hi,
If you take the treegrid example (ext/examples/tree/treegrid.js) and tell the first column to be locked, the sample no longer loads with the following error.
Uncaught TypeError: Cannot call method 'setRootNode' of undefined ext-all-debug.js:88047
Code:columns: [{ xtype: 'treecolumn', //this is so we know which column will show the tree text: 'Task', width: 150, sortable: true, dataIndex: 'task', locked:true },{
Any ideas?
Thanks
It's not prepared to work with locked yet. Try this but don't trust it
Code:Ext.tree.Panel.override({ isContainerPanel : function() { return !this.items || !!this.child('treepanel'); }, onRootChange: function(root) { if (!this.isContainerPanel()) { this.callOverridden(arguments); } }, constructor: function(config) { config = config || {}; this.enableAnimations = false; // PATCH delete config.animate; this.callParent([config]); this.onRootChange(this.store.getRootNode());// PATCH } });