# Prevent Popup Closure on Scrolling the DropDownList

## 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

When the popup item list of the DropDownList is open and the user scrolls it to the end, the browser starts scrolling the page which closes the drop-down list itself. How can I prevent this behavior?

## Solution

The DropDownList enables you to make the popup remain open in such cases. The following example demonstrates how to achieve this behavior.

```dojo
<div id="example">
    <br/><br/><br/><br/><br/><br/><br/><br/>
    <div id="example" style="min-height: 2000px; padding: 30px;">
        <input id="products" style="width: 400px" />
    </div>
</div>

<script>
    $(function() {
          $("#products").kendoDropDownList({
            dataTextField: "ProductName",
            dataValueField: "ProductID",
            dataSource: {
              transport: {
                read: {
                  url: "https://demos.telerik.com/service/v2/core/Products",
                }
              }
            },
            value: "74"
          });

          var widget = $("#products").data("kendoDropDownList");

          widget.ul.parent().on("wheel", function(e) {
            var container = this;

            if ((container.scrollTop == 0 && e.originalEvent.deltaY < 0) ||
                (container.scrollTop == container.scrollHeight - container.offsetHeight &&
                 e.originalEvent.deltaY > 0)) {
              e.preventDefault();
              e.stopPropagation();
            }

          });
        });
</script>
```

## 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)
* [Move the Group Label on Top of Items](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/group-label-on-top-of-the-items)
* [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)
