ESRI.ArcGIS.ADF.Web.UI.WebControls
RenderOnDemand Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > Toc Class : RenderOnDemand Property




Property that determines whether collapsed nodes render children nodes to the browser on initial page load, or only when expanded.

Syntax

Visual Basic (Declaration) 
<PersistenceModeAttribute()>
<BrowsableAttribute(True)>
<ResCategoryAttribute("TreeViewPlus")>
<DefaultValueAttribute()>
Public Overrides Property RenderOnDemand As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Toc
Dim value As Boolean
 
instance.RenderOnDemand = value
 
value = instance.RenderOnDemand
C# 
[PersistenceModeAttribute()]
[BrowsableAttribute(true)]
[ResCategoryAttribute("TreeViewPlus")]
[DefaultValueAttribute()]
public override bool RenderOnDemand {get; set;}

Remarks

If this property is true, contents of nodes will be requested only when nodes are expanded to display the node's contents (if TreeViewPlus.ExpandDepth is set so that a node is expanded on startup, its contents will be rendered at that point). If this property is false, contents and images will be requested on page startup. For example, if the tree is used for a map legend, and this property is false, then all legend swatches are requested on page startup. This can involve many requests and delayed startup if the map includes large numbers of layers or layers with large numbers of categories.

See Also

© 2010 All Rights Reserved.