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?
Printable View
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?
Have you tried the cell editing plugin from the grid to see how far that gets you?
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]
}
}
});
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?