Hybrid View

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    11
    Vote Rating
    0
    roman.buzuk is on a distinguished road

      0  

    Default 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?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Answers
    3447
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    11
    Vote Rating
    0
    roman.buzuk is on a distinguished road

      0  

    Default


    No, because I don,t understand how to use it.
    If I do that:
    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]
                    }            
                }
            });
    I get error "SyntaxError: invalid property id" on string "[cellEditing]". Where is the problem?

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Posts
    11
    Vote Rating
    0
    roman.buzuk is on a distinguished road

      0  

    Default


    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?

Thread Participants: 1

Tags for this Thread