MenuItemDataBound
fired when a menu item is bound to its data source
TreeView
Properties
AutoGenerateDataBindings
a Boolean value specifying whether the TreeView should automatically gen-
erate tree node bindings; default is True
CheckedNodes
a collection of TreeNode objects representing the checked TreeView nodes
CollapseImageToolTip
the tooltip for the image displayed for the collapse node indicator
CollapseImageUrl
a string representing the URL for a custom image to be used as the collapse
node indicator
EnableClientScript
a Boolean value that specifies whether or not the TreeView should generate
client-side JavaScript that expands or collapses nodes; True by default
When the value is False, a server postback needs to be performed every time
the user expands or collapses a node.
ExpandDepth
an integer representing the number of TreeView levels that are expanded
when the control is displayed for the first time; default is -1, which displays
all the nodes
ExpandImageToolTip
the tooltip for the image displayed for the expand node indicator
ExpandImageUrl
a string representing the URL for a custom image to be used as the expand
node indicator
HoverNodeStyle
a TreeNodeStyle object used to define the styles of a node when the cursor
is hovered over it
640
Appendix A: Web Control Reference
ImageSet
a TreeViewImageSet value representing the set of images to be used when
displaying TreeView nodes; default values are Arrows, BulletedList, Bul-
letedList2, BulletedList3, BulletedList4, Contacts, Custom, Events,
Faq, Inbox, News, Simple, Simple2, Msdn, WindowsHelp, and XPFileExplorer
When not using one of these predefined sets, you should define these prop-
erties instead: CollapseImageUrl, ExpandImageUrl, LineImagesFolder, and
NoExpandImageUrl
LeafNodeStyle
a TreeNodeStyle representing the style used to render leaf nodes
LevelStyles
a TreeNodeStyleCollection that contains the styles used to render the items
in each TreeView level
LineImagesFolder
a string containing the path to a web-accessible folder that holds the image
files used to connect child nodes to parent nodes; that folder must include
these files: Dash.gif, Dashminus.gif, Dashplus.gif, I.gif, L.gif,
Lminus.gif, Lplus.gif, Minus.gif, Noexpand.gif, Plus.gif, R.gif,
Rminus.gif, Rplus.gif, T.gif, Tminus.gif, and Tplus.gif
MaxDataBindDepth
defines the maximum number of tree levels to bind to the TreeView control
NodeIndent
an integer representing the number of pixels by which child nodes in the tree
will be indented
Nodes
a TreeNodeCollection containing the root nodes of the tree
NodeStyle
the TreeNodeStyle object that defines the default appearance of all tree
nodes
NodeWrap
a Boolean value indicating whether the text in a node wraps
641
TreeView
NoExpandImageUrl
a string representing the URL for a custom image that indicates nodes that
cannot be expanded
ParentNodeStyle
the TreeNodeStyle object that defines the appearance of parent nodes
PathSeparator
the character used to delimit node values in the ValuePath property
PopulateNodesFromClient
a Boolean value that specifies whether or not node data should be populated
dynamically when necessary, without posting back to the server; default value
is True
RootNodeStyle
a TreeNodeStyle object that defines the appearance of the root node
SelectedNode
a string containing the value of the selected node
SelectedNodeStyle
a TreeNodeStyle object that defines the appearance of the selected node
ShowCheckBoxes
a TreeNodeTypes value that defines which tree nodes should be associated
with text boxes; possible values are All, Leaf, None, Parent, and Root
ShowExpandCollapse
a Boolean value that determines whether or not expansion node indicators
should be displayed
ShowLines
a Boolean value that determines whether or not linking lines between parent
nodes and child nodes should be displayed
SkipLinkText
a string that describes the link that allows screen reader users to skip the
content of this element
642
Appendix A: Web Control Reference

Get Build Your Own ASP.NET 2.0 Web Site Using C# & VB, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.