> For the complete documentation index, see [llms.txt](https://docs.wisej.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wisej.com/docs/controls/lists/combobox/treeviewcombobox.md).

# TreeViewComboBox

Based upon the UserComboBox, the TreeViewComboBox control allows users to select options from a TreeView control embedded into the drop down panel of a ComboBox control.

{% hint style="info" %}
For a full list of properties, methods and events see the [API documentation](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.treeviewcombobox).
{% endhint %}

## Features

### Label

The TreeViewComboBox control supports the inline [Label ](/docs/controls/general/labels.md)property. This allows an application to set a label in relation to a TreeViewComboBox control without having to create an additional Label control.

<div align="left"><img src="/files/-MeQiuLZNwoHPV4E0gwf" alt=""></div>

{% content-ref url="/pages/-MIuBO1zCPpT0Jut8LQd" %}
[Labels](/docs/controls/general/labels.md)
{% endcontent-ref %}

### Select on Enter

The TreeViewComboBox control can be customized to specify whether users are allowed to select an item when it's first clicked or if an additional action should be performed such as double-clicking or clicking on the checkbox.

## Advanced

### JavaScript Widget

| Item                | Description                                                                                                                                                                                                                                                                                                                                                     |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Class name          | "wisej.web.UserComboBox"                                                                                                                                                                                                                                                                                                                                        |
| Theme appearance    | "combobox", "listitem" for the items in the drop down, see [Themes](https://docs.wisej.com/theme-builder/theme-elements/elements).                                                                                                                                                                                                                              |
| Child components    | "textfield" is the inner \<input> widget, "button" is the drop down button, "list" is the drop down list, "popup" is the container of the drop down list, "labelfield" is the inner content when the ComboBox is not editable, and "icon" is the icon for the selected item when it shows an icon. See [JavaScript](/docs/concepts/javascript-object-model.md). |
| ToolContainer state | "treeview", see [Embedded Tools](/docs/controls/general/embedded-tools.md).                                                                                                                                                                                                                                                                                     |
| Source code         | [https://github.com/iceteagroup/wisej-js](https://github.com/iceteagroup/wisej-js/blob/master/wisej.web.TextBox.js)                                                                                                                                                                                                                                             |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/docs/controls/lists/combobox/treeviewcombobox.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
