ESRI.ArcGIS.ADF.Web.UI.WebControls
RenderOnDemand Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TreeViewPlus 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) 
<ResCategoryAttribute("TreeViewPlus")>
<BrowsableAttribute(True)>
<ResDescriptionAttribute("Whether collapsed nodes render children nodes to the browser on initial page load, or only when expanded.")>
<PersistenceModeAttribute()>
<DefaultValueAttribute()>
Public Overridable Property RenderOnDemand As Boolean
Visual Basic (Usage)Copy Code
Dim instance As TreeViewPlus
Dim value As Boolean
 
instance.RenderOnDemand = value
 
value = instance.RenderOnDemand
C# 
[ResCategoryAttribute("TreeViewPlus")]
[BrowsableAttribute(true)]
[ResDescriptionAttribute("Whether collapsed nodes render children nodes to the browser on initial page load, or only when expanded.")]
[PersistenceModeAttribute()]
[DefaultValueAttribute()]
public virtual 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.