Does anyone know who to get the nodes to expand on load? Everything is closed except the top node on load and I would like it expanced on load.
Thanks
Hello,You can use the property Expanded=true of the node. You can set this property in aspx code or code behind. Please take a look code below:aspx <Nodes> <ignav:Node Text="Root Node" Expanded="true">Or C# code
UltraWebTree1.Nodes[0].Expanded = true;Hope this helps.
Hi Ivan,
I tried your recommendations and still can't get it to open on load. Only the root node is open. I can then expand it.
1. In Properties there is not any property Expanded. The closest one I can find is Expandable
2. When I try to add UltraWebTree1.Nodes[0].Expanded = true; to the OnLoad event I get "Property access must assign to the property or use its value". I don't understand this?
3. When I click on Edit Nodes or Edit Node Binding I get the following error. "Error Invoking 'edit nodes'. Details: Exception has been thrown by the target of an invocation".
Here is my text.
DataSourceID="SiteMapDataSource1" DefaultImage="ig_treeFolder.gif"
Font-Names="Microsoft Sans Serif" Font-Size="Small" Height="479px"
WebTreeTarget="ClassicTree" Width="240px"
Text="Root Node" Expanded="true">
<NodeEditStyle Font-Names="Microsoft Sans Serif" Font-Size="7pt">
</NodeEditStyle>
<Images>
<DefaultImage Url="ig_treeFolder.gif" />
<SelectedImage Url="ig_treeFolderOpen.gif" />
<ExpandImage Url="ig_treePlus.gif" />
<CollapseImage Url="ig_treeMinus.gif" />
</Images>
Cursor="Default" ForeColor="White" >
<Padding Bottom="1px" Left="2px" Right="2px" Top="1px" />
</SelectedNodeStyle>
</ignav:UltraWebTree>
Thanks, Jim
Hello Again,
I just got it to expand with the following in the Load event.
UltraWebTree1.ExpandAll()
Jim