Prevent Popup Closure on Scroll

Normally, when the popup item list is open and the user scrolls it to the end, the browser starts scrolling the page which closes the drop-down list itself.

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


The Kendo UI 2014.3 and earlier versions require a different approach from the one demonstrated in the example. If you use any of these versions, you can prevent the closure of the popup by implementing the stopScroll(widget.ul); configuration instead of the stopScroll(widget.ul.parent()); one.

<div id="example">
    <div class="demo-section k-header">
        <input id="products" style="width: 400px" />

        function stopScroll(element) {
          var activeElement;

          $(document).bind('mousewheel DOMMouseScroll', function(e) {
              var scrollTo = null;

              if (!$(activeElement).closest(".k-popup").length) {

              if (e.type == 'mousewheel') {
                  scrollTo = (e.originalEvent.wheelDelta * -1);
              else if (e.type == 'DOMMouseScroll') {
                  scrollTo = 40 * e.originalEvent.detail;

              if (scrollTo) {
                  element.scrollTop(scrollTo + element.scrollTop());

          $(document).on('mouseover', function(e) {
                activeElement =;

        $(document).ready(function() {
                dataTextField: "ProductName",
                dataValueField: "ProductID",
                dataSource: {
                    transport: {
                        read: {
                            dataType: "jsonp",
                            url: "",
                value: "74"

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


    <style scoped>
        #example { min-height: 1200px; padding: 30px; }

        .demo-section {
            width: 400px;
        .demo-section h2 {
            text-transform: uppercase;
            font-size: 1.2em;
            margin-bottom: 10px;

See Also

For more runnable examples on the Kendo UI DropDownList, browse its How To documentation folder.

In this article
Not finding the help you need? Improve this article