-
25 Jan 2013 2:11 AM #1
itemexpand and itemcollapse events not firing in tree panel with a locked tree column
itemexpand and itemcollapse events not firing in tree panel with a locked tree column
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.3
- Chrome 24 (Windows)
- When using a locked tree column in a tree panel itemexpand and itemcollapse events are not firing
- Setup a tree panel with a locked tree column
- Setup listeners for itemexpand and itemcollapse
- itemexpand and itemcollapse events fire when expanding/collapsing tree nodes
- itemexpand and itemcollapse events do not fire when expanding/collapsing tree nodes
Code:Ext.tree.Panel.borrow(Ext.grid.Panel, ['bothCfgCopy', 'normalCfgCopy', 'lockedCfgCopy' ]); Ext.onReady(function() { var store = Ext.create('Ext.data.TreeStore', { fields: [ {name: 'task', type: 'string'}, {name: 'user', type: 'string'} ], root : { "text":".", "children": [{ task:'Project: A', user:'Mike', children:[{ task:'Task 1', user:'Mike', leaf:true }] }] } }); var tree = Ext.create('Ext.tree.Panel', { title: 'Core Team Projects', width: 500, height: 300, renderTo: Ext.getBody(), rootVisible: false, store: store, columns: [{ xtype: 'treecolumn', text: 'Task', dataIndex: 'task', locked: true }, { text: 'Assigned To', dataIndex: 'user', }], listeners: { itemexpand: function() { console.log('itemexpand'); }, itemcollapse: function() { console.log('itemcollapse'); }, } }); });
HELPFUL INFORMATION
Debugging already done:- none
- a workaround for this is to set listeners for lockedGrid instead
- tree.lockedGrid.on('itemexpand', function() { console.log('itemexpand'); } )
- only default ext-all.css
- Windows 7 Pro
-
25 Jan 2013 10:11 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
In 4.2.0 tree not supports locking columns whereas before we never supported it. Have you tried in 4.2.0 beta2
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.
-
28 Jan 2013 2:03 AM #3
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote