Home - Forums-.NET - FlyTreeView (ASP.NET) - Add nodes after loading nodes from file?

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Add nodes after loading nodes from file?
Link Posted: 09-Aug-2005 02:51
Hi,

I'm trying to load a predefined XML-file, and then add some child nodes to one of the nodes defined in the XML-file. Is this possible?

After doing this:

this.ftvNavigator.Nodes.Clear();
this.ftvNavigator.NodeSrc = @"C:\Inetpub\wwwroot\ProdReportsV3_PL\TreeViewXMLTest\Norne_Office2003Nodes.xml";

the ftvNavigator.Nodes.Count == 0. Even in the _PreRender event, it is still zero. I've even (in my desperation) tried to force a render, by calling RenderControl, but the node count is still zero.

I hope somebody is able to shed some light on this for me

Thanks,
Trond
Link Posted: 12-Aug-2005 06:15
Dear Trond,

The NodeSrc property is used at client-side runtime and thus it should have URL syntax.
I think the following line will help you instead:

this.ftvNavigator.NodeSrc = @"/ProdReportsV3_PL/TreeViewXMLTest/Norne_Office2003Nodes.xml";