# Move Group Labels on Top of DropDownList Items

## Environment

<table>
 <tr>
  <td>Product</td>
  <td>Progress® Kendo UI® DropDownList for jQuery</td>
 </tr>
 <tr>
  <td>Operating System</td>
  <td>Windows 10 64bit</td>
 </tr>
 <tr>
  <td>Visual Studio Version</td>
  <td>Visual Studio 2017</td>
 </tr>
 <tr>
  <td>Preferred Language</td>
  <td>JavaScript</td>
 </tr>
</table>

## Description

How can I group the list items of a DropDownList by certain criteria and show the group labels and grouped items within the drop-down list?

## Solution

The following example demonstrates how to move the group label on top of the grouped items in a Kendo UI DropDownList. The approach is also applicable to the [ComboBox](https://demos.telerik.com/kendo-ui/combobox/index) and [MultiSelect](https://demos.telerik.com/kendo-ui/multiselect/index) widgets.

```dojo
<input id="customers" style="width: 400px" />
    <script>
      $(document).ready(function() {
        $("#customers").kendoDropDownList({
          dataTextField: "ContactName",
          dataValueField: "CustomerID",
          fixedGroupTemplate: "LEFT ALIGNED, FULL ROW #=data#",
          groupTemplate: "FULL LINE ABOVE ROW: #: data #",
          height: 400,
          dataSource: {
            transport: {
              read: "https://demos.telerik.com/service/v2/core/Customers"
            },
            group: { field: "Country" }
          }
        });
      });
    </script>
    <style>
      .k-list > .k-item.k-first {
        padding-top: 2em;
      }

      .k-list > .k-hover.k-first {
        padding-top: calc(2em - 1px);
      }

      .k-list > .k-item.k-first > .k-group {
        height: 2em;
        left: 0;
      }

      .k-list > .k-hover.k-first > .k-group {
        top: -1px;
        left: -1px;
      }
    </style>
```

## See Also

* [JavaScript API Reference of the DropDownList](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/dropdownlist)
* [Automatically Adjust the Width of a DropDownList](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/auto-adjust-the-width)
* [Create DropDownLists with Long Items](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/create-dropdownlist-with-long-items)
* [Detect Wrapper Focus Events](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/detect-wrapper-focus-event)
* [Prevent Popup Closure on Scroll](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/prevent-close-on-scroll)
* [Remove Items](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/remove-items)
* [Set DataSource Dynamically](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/set-datasource-dynamically)
* [Update MVVM Bound Models on Load](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/update-model-on-load)
