-
6 Apr 2012 4:47 AM #1
TreePanel double click expands not expansible node
TreePanel double click expands not expansible node
REQUIRED INFORMATION Ext version tested:
- Ext 4.0.7
- FF 11
- IE9
- When making a tree with a node with children, and setting the parent to Collapsible = false, expandable= false,expanded= false, double clicking the node still expands the node
- Make a tree with a node with childnodes, make node expanded: false,expandible:false,collapsible: false, double click node
The result that was expected:- Node not expanded
- Node did expand
WorkaroundCode:var store = Ext.create('Ext.data.TreeStore', { root: { //expanded: true, children: [ { text: "detention", leaf: true }, { text: "homework", leaf:false, expanded: false, expandable: false, collapsible: false, children: [ { text: "book report", leaf: true }, { text: "alegrbra", 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() });
I've added a listener to the treestore:
store.addListener("beforeexpand",this.beforeExpand, this);
In the handler I check if the node can expand, if not: return false, otherwise return true. This works.
-
6 Apr 2012 7:07 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
Thanks for the report.
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.
You found a bug! We've classified it as
EXTJSIV-5863
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote