TreeView dynamic DataBinding and problem with Expanding

V

volts

Hello,

When building a Microsoft.Web.UI.WebControls.TreeView with multiple
XML files, all of the databound nodes of the tree are not loaded at
once. When the TreeNodeSrc property is set for a TreeNode element, the
contents of the node aren't actually bound to the XML source until the
node is expanded.

So, if the expanded node is bound to its data source(have TreeNodeSrc
attribute) all its children are downloaded and rendered.

I try to use this promised behavior in my project, but in deal with i
meet an unpleasant problem:
when i click on desired node, it becomes expanded, but children nodes
were not loaded and constructed from TreeNodeSrc parameter.

Anybody meet the similar problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top