APNSoft Controls [4.5.2.20] - API Reference
APNSoftTreeView Members

APNSoftTreeView overview

Public Instance Constructors

APNSoftTreeView Constructor Initializes a new instance of the APNSoftTreeView class.

Public Instance Properties

AutoCollapse Gets or sets a value indicating whether control automatically collapses child nodes when the user selects an item. Default value is false.
AutoExpand Gets or sets a value indicating whether control automatically expands child nodes when the user selects an item. Default value is true.
AutoPostBackOnItemClick Specifies whether the control causes a postback to the server when an Item is clicked. Default value is false.
BasePage (inherited from APNSoftControl) Gets or sets the reference to the Base Page. Used only in Code Behind.
CheckBoxes Gets or sets a value indicating whether check boxes are displayed next to the tree nodes. Default value is false.
ClientSideOnCheck Gets or sets the client-side code to be launched when an item is checked. Property value can include variables $ComponentID$ and $ItemID$, instead of which data is inserted.
ClientSideOnCollapse Gets or sets the client-side code to be launched when an item is collapsed. Property value can include variables $ComponentID$ and $ItemID$, instead of which data is inserted.
ClientSideOnExpand Gets or sets the client-side code to be launched when an item is expanded. Property value can include variables $ComponentID$ and $ItemID$, instead of which data is inserted.
ClientSideOnItemClick Gets or sets the client-side code to be launched when an item is clicked. Property value can include variables $ComponentID$ and $ItemID$, instead of which data is inserted.
ClientSideOnUnCheck Gets or sets the client-side code to be launched when an item is unchecked. Property value can include variables $ComponentID$ and $ItemID$, instead of which data is inserted.
CSSClassesPrefix (inherited from APNSoftControl) Gets or sets the prefix for CSS Style classes. Used for association between the set of classes and component instance.
CSSSource (inherited from APNSoftControl) Gets or sets the location of the CSS Style. Default value is SkinFolder.
CSSStyleName (inherited from APNSoftControl) Gets or sets the name of the CSS Style. The CSS Style must be located in the Skin Folder as specified by the SkinFolder property.
CSSText (inherited from APNSoftControl) Sets the CSS style value for the control.
DataSource (inherited from APNSoftControl) Gets or sets the data source that provides data for populating the control.
DurationCollapse The duration (in milliseconds) of the collapse animation.
DurationExpand The duration (in milliseconds) of the expand animation.
Elements Gets the collection of elements.
ExpandSinglePath Gets or sets a value indicating whether only the current branch is expanded. Default value is false.
LoadOnDemand Specifies whether child nodes will be populated on demand. Default value is false.
OutputFooter (inherited from APNSoftControl) Gets or sets the data used as a footer for the output HTML markup. Use the "Default" keyword for the standard comment.
OutputHeader (inherited from APNSoftControl) Gets or sets the data used as a header for the output HTML markup. Use the "Default" keyword for the standard comment.
Position (inherited from APNSoftControl) Gets or sets the type of positioning used for the control. Default value is Static.
PositionLeft (inherited from APNSoftControl) Gets or sets the left coordinate for the control, which positioned at an absolute position. Default value is 0.
PositionTop (inherited from APNSoftControl) Gets or sets the top coordinate for the control, which positioned at an absolute position. Default value is 0.
RegisterClientScript (inherited from APNSoftControl) Gets or sets a value indicating whether the component registers the client script with the Page. Default value is true.
SEOEnabled Gets or sets a value indicating whether the control renders an additional NOSCRIPT section with links let all search engines index your website properly. Default value is false.
ShowLines Specifies whether the TreeView renders lines for the tree. Default value is false.
ShowStartingNode Gets or sets a value indicating whether the TreeView renders the starting node. Default value is true.
SkinFolder (inherited from APNSoftControl) Gets or sets the URL for a Skin Folder. Skin Folder includes all component skin parts (CSS Style, images, etc.). The property value can be an absolute or relative URI.
StructureFileURL Gets or sets the URL to the structure file. If the property is not specified, component uses internal default structure. The property value can be an absolute or relative URI. TreeView has support to use the Web.sitemap file as a standard TreeView structure.
WarningsEnabled (inherited from APNSoftControl) Gets or sets a value indicating whether the component generates a client-side JavaScript messages which allow developers to control the component status. Default value is true.
zIndex (inherited from APNSoftControl) Gets or sets the z-index style value for the control. Default value is 200.

Public Instance Methods

DataBind Creates a binding between the TreeView control and a data source.
GetCheckedItems Returns all checked items in the TreeView control.
GetSelectedItem Returns the selected Item.

Public Instance Events

OnItemClick Occurs on the server side when the item is clicked.

See Also

APNSoftTreeView Class | APNSoft.WebControls Namespace