This is a migrated thread and some comments may be shown as answers.

Retaining dropdown state while changing it's position on web page

1 Answer 79 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Gaurav
Top achievements
Rank 1
Gaurav asked on 19 Apr 2016, 01:40 PM

After opening dropdownlist, if due to some reason my dropdownlist position change on my web page, can i retain it's open state (whatever state dropdown is in before it's position change) while dropdown position is changing. Is this natively supported by control.

 

Please help me on this.

Thanks,

Gaurav Prajapati

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 21 Apr 2016, 07:28 AM
Hello Gaurav,

The DropDownList (applicable to all Kendo widgets with popup element) is designed to close its popup on scroll.

If you would like to prevent this built-in behavior, then you will need to prevent the close event thus keeping the popup opened. Most probably you will need to re-position the popup when the page is scrolled:
close: function(e) {
  e.preventDefault();
 
  this.popup.position();
}

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
DropDownList
Asked by
Gaurav
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or