Results 1 to 4 of 4

Thread: Interactive elements on TreeNode

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    Milan
    Posts
    7
    Vote Rating
    0
      0  

    Default Interactive elements on TreeNode

    Hi.

    I have a tree with nodes taken up from a DB query, developed in ExtJs 3.4.0.

    I need to append to every treenode three strings: "add", "del", "mod", and make them clickable to permorm different action.
    "add" should add a child node to the clicked one.
    "mod" should let the user modify the node, opening an appropriate UI.
    "del" should delete the node and any child node.

    Is there any way to perform described action using ExtJs 3.4.0?

    Thank you.
    Stefano

  2. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    31
    Vote Rating
    0
      0  

    Default

    Hi Stefano,

    Did you find a solution? I want to do approximatively the same thing.

    Regards.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Location
    Milan
    Posts
    7
    Vote Rating
    0
      0  

    Default

    Unfortunately, I haven't.
    I did with a context menu which opens at right click.
    Not exactly what I intended to do, but it works as well.

  4. #4
    Sencha User
    Join Date
    Oct 2012
    Posts
    31
    Vote Rating
    0
      0  

    Default

    I have just found something that could help :
    To manipulate client side interface of tree nodes there is this :
    Code:
    treenode.getUI()
    where you can find interesting methods like: getEl() and getAnchor().

    And then you can add HTML to the node, for example:
    Code:
    Ext.DomHelper.append(tree.root.firstChild.firstChild.getUI().getAnchor(), '<p>hi</p>');
    I hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •