# Getting Started with the MultiColumnComboBox

This guide demonstrates how to get up and running with the Kendo UI for jQuery MultiColumnComboBox .

After the completion of this guide, you will achieve the following end result:

```dojo
    <input id="comboBox" />

    <script>
    $(document).ready(function() {
        $("#comboBox").kendoMultiColumnComboBox({
            index: 0,
            dataTextField: "ProductName",
            dataValueField: "ProductID",
            columns: [
                    { field: "ProductName", title: "ProductName" },
                    { field: "ProductID", title: "ProductID" }
            ],
            dataSource: {
                transport: {
                    read: {
                        url: "https://demos.telerik.com/service/v2/core/Products"
                    }
                }
            }
        });
    });
    </script>
```

## 1. Create an Input Element

First, create an `<input>` element on the page that will be used to initialize the component. The content of the `<input>` will be used as content for the MultiColumnComboBox.

```html
    <input id="comboBox" />
```

## 2. Initialize the MultiColumnComboBox

In this step, you will initialize the MultiColumnComboBox from the `<input>` element.

```dojo
    <input id="comboBox" />

    <script>
    $(document).ready(function() {
        $("#comboBox").kendoMultiColumnComboBox();
    });
    </script>
```

## 3. Specify the Data Source

Here, you will specify a [`dataSource`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/autocomplete/configuration/datasource) instance and fetch the remote data.

```dojo
    <input id="comboBox" />

    <script>
    $(document).ready(function() {
        $("#comboBox").kendoMultiColumnComboBox({
            dataSource: {
                transport: {
                    read: {
                        url: "https://demos.telerik.com/service/v2/core/Products"
                    }
                }
            }
        });
    });
    </script>
```

## 4. Define the Columns Rendered in the Table

In this step you will define the columns rendered in the table of the MultiColumnComboBox.

```dojo
    <input id="comboBox" />

    <script>
    $(document).ready(function() {
        $("#comboBox").kendoMultiColumnComboBox({
            columns: [
                    { field: "ProductName", title: "ProductName" },
                    { field: "ProductID", title: "ProductID" }
            ],
            dataSource: {
                transport: {
                    read: {
                        url: "https://demos.telerik.com/service/v2/core/Products"
                    }
                }
            }
        });
    });
    </script>
```

## 5. Define the Data Value Field and the Data Text Field

The [`dataValueField`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/multicolumncombobox/configuration/datavaluefield) specifies the field of the data item that provides the value for the component and the [`dataTextField`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/multicolumncombobox/configuration/datatextfield) sets the field of the data item that provides the text content of the list items.

```dojo
    <input id="comboBox" />

    <script>
    $(document).ready(function() {
        $("#comboBox").kendoMultiColumnComboBox({
            index: 0, // the index of the initially selected item
            dataTextField: "ProductName",
            dataValueField: "ProductID",
            columns: [
                    { field: "ProductName", title: "ProductName" },
                    { field: "ProductID", title: "ProductID" }
            ],
            dataSource: {
                transport: {
                    read: {
                        url: "https://demos.telerik.com/service/v2/core/Products"
                    }
                }
            }
        });
    });
    </script>
```

## Next Steps

* [Referencing Existing Component Instances](https://www.telerik.com/kendo-jquery-ui/documentation/intro/widget-basics/events-and-methods)
* [Demo Page for the MultiColumnComboBox](https://demos.telerik.com/kendo-ui/multicolumncombobox/index)

## See Also

* [JavaScript API Reference of the MultiColumnComboBox](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/multicolumncombobox)
* [Knowledge Base Section](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base)
