1. #1
    Ext User
    Join Date
    May 2008
    Posts
    18
    Vote Rating
    0
    npintos is on a distinguished road

      0  

    Default Custom Tree icons Rendering only after expanding nodes

    Custom Tree icons Rendering only after expanding nodes


    Hi!

    I seem to be missing some basic concepts from tree rendering, because i'm trying to do the most basic thing, and it's not working.

    I have a tree with async nodes. When i expand a node, i want it's children to show a custom icon.

    [CODE]var arbolDatos = new Ext.tree.TreePanel({
    //useArrows:true,
    autoScroll:true,
    animate:true,
    containerScroll: true,
    preloadChildren: false,
    loader: treeLoader,
    border:false,
    iconCls: 'my-icon',
    bodyBorder: false,
    root: {
    nodeType: 'async',
    text: 'Campa

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    just out of curiosity, why are you looking to change the iconCls after the load? Why not just set it when the node is created?

  3. #3
    Ext User
    Join Date
    May 2008
    Posts
    18
    Vote Rating
    0
    npintos is on a distinguished road

      0  

    Default


    because i don't know how to do that! the nodes are created automatically by (i guess) the treeloader. As i said, i tried to apply the behaviour i want in the treeloader 'load' event, with no effect.

    How would you do it?

  4. #4
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    there are a few approaches:

    the best one is the server side setting the iconCls.

    another way is setting up a handler for the append event for each branch node, which (i think) fires after the children have been rendered.

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