[Users] can't 'find' geoext tree nodes in a tree
William Kyngesburye
woklist at kyngchaos.com
Thu Nov 19 21:31:15 CET 2009
I created a treea with a mix of plain ext nodes for static layer labels and groups and custom legend items, and geoext layer nodes. All nodes I've assigned an id.
When I try to find a node later, only non-geoext nodes can be found. I've tried both:
foundnode = layerpanel.root.findChild('id', 'somenodeid');
and:
foundnode = layerpanel.getNodeById('somenodeid');
when it's a geoext type node, null or undefined is returned.
Bug? or intended behavior?
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
Theory of the Universe
There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened.
-Hitchhiker's Guide to the Galaxy 2nd season intro
More information about the Users
mailing list