I have a .htm page which has the IE treeview - to be used client side only.
<treeview:TREEVIEW id="UnitTreeView" systemImagesPath="webctrl_client/1_0/treeimages/" selectExpands="true" showPlus="true">
</treeview:TREEVIEW>
Its using the treeview.htc implementation in the page.
In the body onLoad it executes a JavaScript function that gets the root node via an AJAX call and returns the data in the following format.
<TREENODES>
<treenode text="World" expanded="true" childId="11720" navigateURL="javascript:onClickedNode(....);"></treenode>
</TREENODES>
The idea being that when the world node is clicked it gets the node Index via the clickedNodeIndex property, the childId attribute is read and this is used to call the AJAX function that returns the XML which is then made into an XML DOM. This is itterated through to create a new node and every attribute is also created via the setAttribute for the newly created node.
The only thing is I cant get the treenode to be expanded before/during or after i create the new node or nodes. Not even the parent works. Why? Is this possible?? I can alert out any of the attributes but the expanded attribute is false?
Any help would be greatly appreciated.