I have a treeview which i populate dynamically using an XML Datasource. The leaf nodes in the TreeView attempt to open a URL in an iframe within the page.
This all works fine, but i would like the iframe to be hidden until the point the leaf node is selected.
Does anyone know what event is triggered when the nodes are clicked?? I tried the SelectedNodeChanged event but this doesnt seem to get triggered!
Or is there any other way to do this??
UPDATE - The TreeView code is shown Below
<asp:TreeView ID="TreeView1" runat="server" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged" DataSourceID="XmlDataSource2" AutoGenerateDataBindings="False">
<DataBindings>
<asp:TreeNodeBinding DataMember="Node" NavigateUrlField="URL" ValueField="Name" TargetField="iframe" SelectAction="Select" />
</DataBindings>
</asp:TreeView>
While fiddling with my code i noticed that when i remove the NavigateUrlField="URL" from my code the tree triggers the SelectedNodeChange event, But does not Trigger if NavigateUrlField="URL" is put back in.
Any idea as to how i can get around this???