Gets or sets a value indicating whether the node to which the System.Web.UI.WebControls.TreeNodeBinding object is applied is populated dynamically.
Documentation for this section has not yet been entered.
Sometimes, it is not practical to statically predefine the tree structure due to data size or custom content that depends on user input. Because of this, the System.Web.UI.WebControls.TreeView control supports dynamic node population. When the TreeNodeBinding.PopulateOnDemand property is set to true, the child nodes of the node that the System.Web.UI.WebControls.TreeNodeBinding object is applied to gets populated at run time when the node is expanded.
When data bindings are created by setting the TreeView.AutoGenerateDataBindings of the System.Web.UI.WebControls.TreeView control to true, the bindings that are created have the TreeNodeBinding.PopulateOnDemand property set to true. Data bindings that are created declaratively have the TreeNodeBinding.PopulateOnDemand property set to false. Using the declarative syntax allows you to control the behavior of individual data bindings.
Unlike the TreeNode.PopulateOnDemand property of the System.Web.UI.WebControls.TreeNode class, the TreeNodeBinding.PopulateOnDemand property does not require an event-handling method to be defined for the TreeView.TreeNodePopulate event, if you are using a data source control, such as System.Web.UI.WebControls.XmlDataSource. Instead, the System.Web.UI.WebControls.TreeView control dynamically generates an event-handling method using the properties of the System.Web.UI.WebControls.TreeNodeBinding objects in the TreeView.DataBindings collection. You can still define an event-handling method for the TreeView.TreeNodePopulate event; however, it will be called after the event-handling method for the System.Web.UI.WebControls.TreeView control.
Supported browsers can also take advantage of client-side node population. When enabled, this allows the System.Web.UI.WebControls.TreeView control to populate a node dynamically on the client when that node is expanded, preventing the need to post back to the server. For more information on client-side node population, see TreeView.PopulateNodesFromClient.
The value of this property is stored in view state.