GIGJ.COM
welcome to my space
X
Welcome to:gigj.com
Personal Injury | Languages | Soups | Photography | Email | Prepress | Exotic Locations | Computer Games | Related articles
Search:  
NAVIGATION: Home >>
tree node highlight problem
Published by: smith 2009-01-07

  • i do a search of my tree for a particular node using the cascade function...

    when i find it i call ensureVisible then get the Element and try to highlight it...

    i tried like this:


    node.ensureVisible();
    var el = node.getUI().getEl()
    var El = Ext.get(el);
    IDM Computer Solutions, Inc. Forums • View topic - help with ::
    Re: help with syntax highlighting, explorer display. Post by Mofi on Fri Jun 09, It is just a file tree view not an explorer instance inside UE.
    http://www.ultraedit.com/forums/viewtopic.php?f=46&t=3190
    HOME
    El.highlight()


    then tried using a defer:


    node.ensureVisible();
    function highlight(){
    var el = node.getUI().getEl()
    var El = Ext.get(el);
    El.highlight()
    }
    highlight.defer(500);


    ...i then found that the ensureVisible function has a callback and i tried that too but it didn't work either....
    Sunday Highlights Photo Gallery by Matt Lane Photos at pbase.com::
    Matt Lane Photos | profile | all galleries >> UPA College Championship 2007 ( Gallery of Galleries) >> Sunday Highlights, tree view | thumbnails | slideshow
    http://www.pbase.com/jmlane/collegeupa07_d3&view=tree
    HOME

    i even tried a 5000 milisecond defer and it still didn't work...

    it can't find the el....

    but when i run the whole function again it does works...!

    this happens for any treenode that isn't visible when i call the function, once it's been shown (rendered i think..) then it finds the el and highlights it...

    is this a bug, or am i doing something wrong...?

    Many thanks in advance

    SJ


  • The callback is the way to go:
    node.ensureVisisble(function(){
    var el = Ext.fly(node.getUI().getEl());
    el.highlight();
    });


  • And this?
    node.ensureVisisble(function(){
    var n = node.getOwnerTree().getNodeById(node.id);
    var el = Ext.fly(n.getUI().getEl());
    el.highlight();
    });


  • ...doesn't work either... says node.getOwnerTree() has no properties...

    i should have mentioned that i'm using the column tree... but i'm guessing it shouldn't make much difference...?

    hold on....

    i changed it from node.getOwnerTree() to myTreePanel and now it works!!!!

    ie var n = treePanel.getNodeById(node.id);

    thanks alot Condor!!

    for everyone else:


    node.ensureVisible(function() {
    var n = myTreePanel.getNodeById(node.id);
    var el = Ext.fly(n.getUI().getEl());
    el.highlight();
    });


    where myTreePanel is a reference to the TreePanel :)

    is strange tho... i can only assume that the node object is replaced during the render process.... so somehow the other methods tried were holding a reference to a old node object...

    perhaps a note about this could be added to the docs? if you agree i'll happily post again on the missing docs thread...

    Cheers again

    SJ

    :)


  • unfortunetly it still doesn't work... same error:

    "el has no properties"....





  • Nortel Unveils Vision, Strategy for Israeli High-Performance Net
    Busy Friday Leads to Strong Close for Net Stocks

    You are looking at:gigj.com's tree node highlight problem, click gigj.com to home
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about tree node highlight problem , Please add it free.
  • does blue go good with purple
  • what is the reason for putting chairs on tables in school
  • i need help refurbishing my sofa
  • where 039 s the best place to buy christmas decorations
  • bedroom decorating ideas
  • i have a stained door frame that i want to paint white do i need to sand it down before i paint it
  • where can i find a free couch and other furniture in bristol tennessee in good condition
  • what kind of paint is used to paint windows
  • should i paint my high ceiling
  • candle scents that smell very good
  • how can i get rid of the smell of stale cigarette smoke from our flat quickly
  • trying to find a bed set in twin xl
  • how can i make my room emo if my mom will not get me anything for my room
  • my bedhead and matress dont fit together
  •  
  • my whirlpool dryer is making squeeky sounds
  • can you burn potpourri in a fireplace and will it smell up the house
  • does a washing drying machine cost a lot to run
  • looking for super king size duvet covers and throws
  • is it against building codes to install gas lighting in a home
  • help out with my new room
  • where to buy elegant bedding for twin bed
  • my room is to babyish …
  • where can i get beaded draperies
  • i want to upgrade my furniture …
  • is there a way to refinish a chrome bar stool so it 039 s not so shiny
  • hey umm im like 13 and im trying to redo my room and it would be 1830 50s victorian style bedroom any ideas
  • will someone help me with my room
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 gigj.com        Site made:CFZ