Hybrid View
-
16 Nov 2012 9:25 AM #1
Unanswered: edit tree node
Unanswered: edit tree node
How to edit a child node of a Ext.tree.panel(Extjs.tree.panel)???
-
19 Nov 2012 9:26 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3157
More info please.
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.
-
20 Nov 2012 12:23 AM #3
respense
respense
when i double click in a node in tree i want to edit the text of the node
-
20 Nov 2012 1:06 AM #4
on itemdblclick event of the tree panel, you can create e.g. a popup where the new text can be entered. or if you already have the text, you can do the following:
where newText is the variable containing the text string which you want to display in your tree node.Code:var node = tree.getSelectionModel().getSelection()[0]; // get selected node node.set('text', newText);


Reply With Quote