Skip to main content
Version: 4.1

TreeViewComboBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

The TreeViewComboBox control represents a UserComboBox control with a TreeView as the drop down panel.

public class TreeViewComboBox : UserComboBox

Constructors

Instance member TreeViewComboBox()

Initializes a new TreeViewComboBox control.

Properties

Instance member ImageIndex

Int32: Returns or sets the image-list index value of the default image that is displayed by the tree nodes. (Default: -1)

Throws:

Instance member ImageKey

String: Returns or sets the key of the default image for each node in the TreeView control when it is in an unselected state. (Default: "")

Instance member ImageList

ImageList: Returns or sets the ImageList that contains the Image objects that are used by the tree nodes. (Default: null)

Instance member Nodes

TreeNodeCollection: Returns the collection of tree nodes that are assigned to the tree view control.

Instance member PrefetchItems

Int32: Returns or sets the number of items to prefetch outside of the visible area when VirtualScroll is set to true. The default is 0 (disabled). (Default: 0)

Instance member SelectedIndex

Int32: Returns or sets the index of the currently selected item.

Throws:

  • ArgumentOutOfRangeException The specified index is less than -1; o the specified index is greater than the number of items in the combo box.

Instance member SelectedItem

TreeNode: Returns or sets the selected node in the drop down TreeView control.

Instance member Text

String: Returns or sets the text associated with this control. (Default: "")

Instance member TreeView

TreeView: Returns the TreeView control associated with this TreeViewComboBox.

Instance member TreeViewNodeSorter

IComparer<TreeNode>: Returns or sets the implementation of IComparer to perform a custom sort of the TreeView nodes.

Instance member VirtualScroll

Boolean: Enables or disables virtual scrolling for the TreeView. When virtual scrolling is enabled, only the visible nodes are rendered in the browser allowing the TreeView to host virtually unlimited nodes without any performance loss. (Default: False)

When VirtualScroll is set to true, all the nodes must be of the same height, limiting the more flexible HTML rendering in the nodes available when VirtualScroll is off (default).

Setting the property PrefetchItems to a value greater than 0 allows the virtual view to prefetch the specified number of items outside of the visible area to enable smoother scrolling.

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
ILabelProvides access to the LabelWrapper associated with the controls that implement this interface.
IReadOnlyProvides access to the ReadOnly property for coontrols that support the read-only mode.
IModifiedProvides access to the Modified property and ModifiedChanged event for controls that implement this interface.
IValidationProvides access to the validation events and properties property for controls that support validation.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.