ASP.NET 3.5 and above only

ASP.NET TreeView - Obout.Ajax.UI.TreeView.Tree Class

Obout.Ajax.UI.TreeView namespace
Obout.Ajax.UI.TreeView.Tree class

 Inheritance Hierarchy

<%@ Register assembly="Obout.Ajax.UI" namespace="Obout.Ajax.UI.TreeView" tagprefix="obout" %>

Appearance

PROPERTIES DESCRIPTION
propertyCollapseImageUrl Gets or sets the URL to a custom image for the collapsible node indicator.

Type : String
Default : String.Empty

propertyExpandImageUrl Gets or sets the URL to a custom image for the expandable node indicator.

Type : String
Default : String.Empty

propertyLeafNodeImageUrl Gets or sets the URL to a custom image for the leaf node indicator.

Type : String
Default : String.Empty

propertyShowLines Gets or sets a value indicating whether lines connecting child nodes to parent nodes are displayed.

Type : bool
Default : true

propertyCssClass Gets or sets the CSS class name applied to the control.

Type : string
Default : string.Empty

propertyNodeStyle Gets or sets the custom appearance of a node

Type : Obout.Ajax.UI.TreeView.NodeStyle
Default : null

propertyRootNodeStyle Gets or sets the custom appearance of a root node(first level nodes).

Type : Obout.Ajax.UI.TreeView.NodeStyle
Default : null

Note : The 'NodeStyle' will be overwrited if the 'RootNodeStyle' is defined.
propertyLeafNodeStyle Gets or sets the custom appearance of a leaf node

Type : Obout.Ajax.UI.TreeView.NodeStyle
Default : null

Note : The 'NodeStyle' will be overwrited if the 'LeafNodeStyle' is defined.
propertyLevelCssNamePrefix Gets or sets a prefix of level CSS name added for a node.

Type : string
Default : string.Empty - no level class name is added.

Accessibility

PROPERTIES DESCRIPTION
propertyEnableKeyboardSupport Gets or sets the boolean value indicating whether to enable keyboard support.

Type : bool
Default : false

propertyRightToLeft Sets the 'dir' attribute as 'rtl' to set right to left format.
<cc1:Tree id="Tree1" dir="rtl" ...

NodeTextEditing

PROPERTIES DESCRIPTION
propertyAllowNodeEdit Gets or sets the boolean value indicating whether the text of the tree nodes are editable.

Type : bool
Default : false

DragAndDrop

PROPERTIES DESCRIPTION
propertyEnableDragAndDrop Gets or sets the boolean value indicating whether to enable the drag and drop functionality.

Type : bool
Default : false

propertyNodeDropTargets Gets or sets the list of control id's seperated by semicolon(;) on which the tree node can be droppable.

Type : string
Default : string.Empty

Example : oboutTree1.NodeDropTargets="TextBox1;Panel1";

Data

PROPERTIES DESCRIPTION
propertyDataSourceID Gets or sets the control id of an IDatasource that will be used as the datasource.

Type : string
Default : string.Empty

propertyDataSource Gets or sets the control of an IDatasource that will be used to bind with the control.

Type : object(Implements IDataSource interface)
Default : null

propertyDataSourceID Gets or sets the control id of an IDatasource that will be used as the datasource.

Type : string
Default : string.Empty

propertyDataMember Gets or sets the specific data member in a multimember data source to bind to the control.

Type : string
Default : string.Empty

propertyAutoGenerateDataBindings Gets or sets the maximum number of tree levels to bind to the TreeView control.

Type : int
Default : -1, which binds all the Tree levels.

propertyDataBindings Gets the value which defines the relationship between a data item and the tree node it is binding to.

Type : Obout.Ajax.UI.TreeView.NodeBinding
Default : null

MISC

PROPERTIES DESCRIPTION
propertyLoadingMessage Gets or sets the loading message that is displayed when child nodes are retrieved on AJAX calls

Type : string
Default : String.Empty

propertyAutoPostBackOnNodeSelect Gets or sets the boolean value indicating whether to allow the page postback when a node is selected.

Type : bool
Default : true

propertyEnableMultiNodeSelection Gets or sets the boolean value indicating whether the treeview allows multiple node selection (by holding down ctrl key or shift key while selecting nodes)

Type : bool
Default : false

propertySelectedNodes Gets a list of selected nodes.

Type : List<Node>
Default : empty

ServerEvents

EVENTS DESCRIPTION
propertySelectedTreeNodeChanged When the user clicks a Node, the SelectedTreeNodeChanged event fires. Use the NodeEventArgs.Node property to get or set the clicked-on Node properties.
propertyTreeNodeDataBound The TreeNodeDataBound fires for every Node that is bound to data. Use the NodeEventArgs to access the properties of the bound Node. Use the Node's DataItem property to access the underlying object or data row being bound to.
propertyTreeNodeDrop When a Node is dropped onto another Node, between other Nodes or onto an HTML element the NodeDrop event fires. The NodeDropEventArgs provides properties for the source and destination Nodes.
propertyTreeNodeEdited The NodeEdit event fires when the user clicks the Enter key after editing a Node.The NodeEditingEventArgs passed to the event handler provides a reference to the edited Node and a Text property
propertyTreeNodeExpanded When the user clicks the plus button next to a Node that has child Nodes, the NodeExpand event fires. Use the NodeEventArgs.Node property to get or set the clicked-on Node properties. The Node ExpandMode property must be set to ServerSide, ServerSideCallback for this event to fire.

METHODS

METHODS DESCRIPTION
methodExpandAll Expands all the nodes in the OboutTree control

Returns : void
Arguments :None

methodFindNodeByText Gets the first instance of a Node with the specified text

Returns : Node
Arguments :( string nodeText)

"You guys have fantastic support."

Siamak Delavari
TD Securities

Random testimonial   All testimonials