Prevent popup close on scrolling.

2 posts, 1 answers
  1. Taras
    Taras avatar
    11 posts
    Member since:
    May 2015

    Posted 31 Jul 2015 Link to this post

    Need to prevent closing dropdown popup, when user scrolls the page. 

    Movie to explain the issue. https://drive.google.com/a/productiveedge.com/file/d/0Bzruk8_x7z70TnFaNVdxYXpiSzg/edit

     In fact, dropdown should be closed only by user click on opened autocomplete again.

    Result should be like the dropdowns on this page. http://www.w3schools.com/bootstrap/bootstrap_dropdowns.asp

    Thanks in advance.

  2. Answer
    Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1803 posts

    Posted 04 Aug 2015 Link to this post

    Hi Taras,

    Closing the drop down when you click on another element on the page is the expected behavior. Nevertheless, if you need to prevent this you can handle the "close" event of the widget and determine whether or not to prevent the closing. Since you want to close the drop down when you select an item, you can use a global boolean variable and change its value within the "change" event as demonstrated in the following dojo example:

    Regards,
    Konstantin Dikov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top