Home - Forums-.NET - FlyTreeView (ASP.NET) - ForceInit doesn't work

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

ForceInit doesn't work
Link Posted: 20-Sep-2005 05:24
I am using TreeView control with property NodeSrc="http://xxx/nodedata.aspx". I set the ForceInit = true and want to force the updating when node data changing. But on every postback, it seemed the expanded nodes didn't call the nodedata.aspx even the ForceInit set to true.

Is anybody here can give me some help?

Thank you
Link Posted: 20-Sep-2005 21:32
Once the nodes are loaded from the NodeSrc, they are added to the Nodes collection of treeview instance and thus they do not refresh every postback again.
ForceInit property just forces the FlyTreeView client-side runtime to complete client-side initialization of loaded nodes in order to let developer to use client-side model in full.

Probably you just need to clear the nodes collection every postback, thus your nodes will be loaded every postback from the NodeSrc.