Results 1 to 3 of 3

Thread: TreeNodeUI.getIconEl() problem at Tree "append" event

  1. #1
    Sencha User Zerogiven's Avatar
    Join Date
    Mar 2010
    Location
    Linz, Austria
    Posts
    29

    Default TreeNodeUI.getIconEl() problem at Tree "append" event

    Hi all

    so i've got another problem this weekend...

    I've an append listener at my tree. Inside this event i'll get the node which will be append. But my problem is i don't get the elements of this node (i think this happens cause it's not already rendered at this moment)...

    my code
    PHP Code:
    Ext.getCmp("tree").addListener("append", function(treeparentnode) {
                var 
    ui node.getUI(); // <-- get Object succesfully
    debug.trace(ui.getIconEl()); // <-- undefined
            
    }); 

    This is cause i want add a mouseover event to the icon to a node which will append.

    So i've ideas but no solution:
    .) any possibillity to make an event like "afterappend" or "rendered" to the Node
    .) i tried to set a event with Ext.query to the icon... but this works only to the icons which already rendered at the moment i add the listener. Could i make it "live" for all items which will be added into the dom?


    Hope you know what i mean/want

    greetz
    Chris

  2. #2
    Sencha User Zerogiven's Avatar
    Join Date
    Mar 2010
    Location
    Linz, Austria
    Posts
    29

    Default

    For the mouseover event i found a solution there: http://www.extjs.com/forum/showthrea...event&p=180375

    Just the mouseout event fails at the moment (details in the thread above)

    greetz
    Chris

  3. #3
    Sencha User Zerogiven's Avatar
    Join Date
    Mar 2010
    Location
    Linz, Austria
    Posts
    29

    Default

    Got it

    take a look in the other thread (link above) for my solution... maybe someone can say me there why my solution works, cause i'm not really understanding it ^^

    greetz

Posting Permissions

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