ESRI.ArcGIS.ADF.Web.UI.WebControls
RenderOnDemand Property
See Also  Send Feedback
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) 
<BrowsableAttribute(True)>
<DefaultValueAttribute()>
<ResCategoryAttribute("TreeViewPlus")>
<PersistenceModeAttribute(PersistenceMode.Attribute)>
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# 
[BrowsableAttribute(true)]
[DefaultValueAttribute()]
[ResCategoryAttribute("TreeViewPlus")]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.