http://www.cflex.net/showFileDetails.cfm?ObjectID=554

I got the example to work perfectly, but in my code where the xml is more 
complex, it only selects/highlights the last match. allowMultipleSelection = 
"true" but when I step through I can see that the array tree.selectedItems only 
holds the last

treeSlsHrchy.selectedItem = xmllistDescendants[i];

which overwrites the previous entry i.e. the array is always a single row. In 
the example debug I can see the selectedItem array build up line by line as the 
loop loops. So I went back to the example and altered the xml from

<element eid="graham"/>
<element eid="weldon">

to

<element eid="graham" id="6"/>
<element eid="weldon" id="7">

and the example now only highlights/selects the last match i.e. the 
selectedItems array refuses to hold more than a single row. Why does the extra 
xml do this? Inquiring minds etc :-) TIA,

Mic.

Reply via email to