|
Try removeTreeNode() instead of “removeNode”.
That is the correct method of the treeDataProvider API. removeNode may be a
low-level method that is not emitting the event. Where did you find that
method anyway? Tracy From: One step further…that code snippet *is* working…the dataprovider for the
tree is changed…the nodes *are*
removed…I believe it’s the tree component that’s not
refreshing properly. I’ve tried redraw and broadcasting modelChanged,
change events to no avail… -Stace From: Tried this variation, same
result…removes a folders child nodes but leaves the
folder…don’t get it !! var dp =
view.profileFields.dataProvider; for (var locNode :XMLNode = dp.firstChild;
locNode != null;) { var exclude :Boolean = false; if ( locNode.toString() ==
nodes[0].toString() ) {
trace("TRUE");
exclude = true; } var nextNode = locNode.nextSibling; if( exclude ) {
locNode.removeNode(); } locNode =
nextNode; } From:
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Can't Seem to removeNode properly from a Tre... Jeff Conrad
- RE: [flexcoders] Can't Seem to removeNode properly from ... Tracy Spratt
- RE: [flexcoders] Can't Seem to removeNode properly from ... Stacy Young
- RE: [flexcoders] Can't Seem to removeNode properly from ... Stacy Young

