Hybrid View

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    Milan
    Posts
    5
    Vote Rating
    0
    s.gatti is on a distinguished road

      0  

    Default Interactive elements on TreeNode

    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
    yo_haha is on a distinguished road

      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
    5
    Vote Rating
    0
    s.gatti is on a distinguished road

      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
    yo_haha is on a distinguished road

      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.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi