-
7 Dec 2012 12:47 AM #1
Unanswered: Tree`s node editor
Unanswered: Tree`s node editor
I want to create tree editor. But i don,t know how to make renaming of nodes. I want to make it like Windows renaming, i.e. current name become editable and copyable, when i press menu button 'edit'.
How i can do that?
-
9 Dec 2012 8:01 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
- Answers
- 3100
Have you tried the cell editing plugin from the grid to see how far that gets you?
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.
-
9 Dec 2012 10:21 PM #3
No, because I don,t understand how to use it.
If I do that:
I get error "SyntaxError: invalid property id" on string "[cellEditing]". Where is the problem?Code:var cellEditing= Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 1 }); var tree = Ext.create('Ext.tree.Panel', { id: 'tree', store: store, width: 250, height: 300, rootVisible: false, border:0, viewConfig: { plugins: { ptype: 'treeviewdragdrop', appendOnly: true, [cellEditing] } } });
-
13 Dec 2012 11:42 PM #4
As I understand, for using cellEditing, I should use property "columns".
But I don`t need menu,which is created for columns.
I just need possibility to edit name only for folders by doubleclicking and from menu. How I can make this?


Reply With Quote